How to use get & post methods in Jquery - Web Development

How to use get & post methods in Jquery

I am going to use get method, usually we work on get and post method so Jquery has two methods for sending data from browser to server & receiving data from server $ .get() & $.post() . We can also use these methods for AJAX REQUEST . The basic syntax of post & get method :

$.get(URL , data , success) ; This for get method

$post(URL , data , success); This is for post method

The URL specifies where to send data , data is used for string data & success is a callback function that executed if the request succeeds .

Below is php code for multiplication table : – table.php

If you run this code in your browser

See more tutorials on Jquery and php

Leave a Reply

Your email address will not be published. Required fields are marked *