jQuery post() Method – load data from the server
jQuery post() Method loads data from the server using a HTTP POST request. Syntax: $(selector).post(URL, data, function(data,status,xhr), dataType) Example of jQuery post(): $.post( “ajax-master.php”, function( data ) { $( “#result” ).html( data ); }); The above example fetches the requested HTML snippet and inserts it on the page based on ID. Read also: Abort Ajax […]