External page from which I'd want to import data looks like this:
<div id="cont1">something</div>
<div id="cont2">something else</div>
I am using this code to get the contents:
$.get("page.html", function(data) {
$("#container1").html(data);
$("#container2").html(cont2);
});
It works but not quite right since it's importing the containers too. How can I import only contents, not containers?