Link to home
Start Free TrialLog in
Avatar of IvanGarcete
IvanGarceteFlag for Paraguay

asked on

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.
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Avatar of IvanGarcete

ASKER

Yeah, that could work partially... How can I get and print a returned parameter  from a PHP function inside the JQuery function?
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah, but how do I capture the message from my php script? Is that "data"? How do I show data in an alert window?