I have on my page (page1.php) a div called result that updates when you click a link with the loadlink id. It sends a url along to page2.php The script is:
$(function() {
$(".loadlink").click(function(event) {
event.preventDefault();
$("#result").load($(this).data('url'));
});
});
I want it so it also updates another div called crimes after this runs, with data from a url page3.php. How can i change the code to do this?
when you click a link with the loadlink id. The period notation denotes that you are looking for elements with theloadlinkclass.