avireni
4/12/2012 - 9:45 PM

jQuery Ajax request

jQuery Ajax request

$(document).ready(function() {
    $('#mytarget').load( '/js/remote-file.php', { id: '1' });
});

Call the load function with the address of the script, with optional parameters.
Will call /js/remote-file.php?id=1 and return the results inside the div with the id 'mytarget'