Button that sends and gets AJAX message using JQuery

Hello, I need to create a button that sends a number to a PHP script and gets an answer to present in an alert window. How can I do this using JQuery?

Thanks.
IvanGarceteAsked:
Who is Participating?
 
Gurvinder Pal SinghCommented:
you need to use the success handler/function
http://api.jquery.com/jQuery.ajax/
0
 
Gurvinder Pal SinghCommented:
0
 
IvanGarceteAuthor Commented:
Yeah, that could work partially... How can I get and print a returned parameter  from a PHP function inside the JQuery function?
0
 
IvanGarceteAuthor Commented:
Yeah, but how do I capture the message from my php script? Is that "data"? How do I show data in an alert window?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.