submitted by:

Javascript: jQuery Ajax Load Into Div

Making an ajax call from jQuery is simple. Call the load function with the address of the script, with optional parameters.


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

notes:
Will call /js/remote-file.php?id=1 and return the results inside the div with the id 'mytarget'