jQuery load to multiple divs
Posted
by
afcdesign
on Stack Overflow
See other posts from Stack Overflow
or by afcdesign
Published on 2012-09-09T15:22:13Z
Indexed on
2012/09/09
15:38 UTC
Read the original article
Hit count: 158
I have this code
$("body").on({
click: function(event){
event.preventDefault();
var aLink = $(this).attr("href");
$("#content").load(aLink+" #loader", function(){
//Callback here
});
$("#crumbbar").load(aLink+' .breadcrumbs', function(){
//Callback here
});
}
}, "a");
Can this be optimized in such a way that I only have 1 load command?
© Stack Overflow or respective owner