I'm trying to load an ajax page and based on success, i want to populate certain divs on my page with returned ajax content. How do i pull this off?
$.get('mypage',function(data){
$('#1').html($(data #1r).html()) //grab from returned content <div id="1r">blah</div>
$('#2').html(data #2r).html() //grab from returned content <div id="2r">blah</div>
});
<div id="1"></div>
<div id="2"></div>
Any help would be greatly appreciated... thanks all!
damien