AJAX in JQuery
¨ $.get(url [, data] [, success(data,textStatus, jqXHR){} )
¨ $.post(url [, data] [, success(data,textStatus, jqXHR){} )
¨ $.getJSON(url [, data] [, success(data,textStatus, jqXHR){} )
¤ Use an AJAX get request to get JSON data
$.get( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
alert( "Load was performed." );
});
$.post( "ajax/test.html", postdata, function( data ) {
$( ".result" ).html( data );
});