jQuery.load () is probably the easiest way to load data asynchronously with a selector, but you can also use any of jQuery's ajax methods (get, post, getJSON, ajax, etc.)
Note that loading allows you to use a selector to indicate which part of the loaded script you want to load, as in
$("#mydiv").load(location.href + " #mydiv");
Note that this technically loads the entire page, and jquery removes everything except what you selected, but it's all done internally.
source share