Bruce McKenzie wrote in an email message dated 5/26/2008 6:48 PM:
It is easy. Just turn the html into a jQuery object (a pseudo-Array).
The ajax call should include options like these:
dataType: "html",
success: function(html){
// return from ajax is html because you specified that dataType
var $myDivs = $(html);
$('#someDiv').html( $myDivs.eq(0) );
$('#anotherDiv').replace( $myDivs.eq(1) );
//etc
}
HTH
Bruce
er, that won't help because it should be
$myDivs = $(html).find('div');
--
Bruce McKenzie
Business Information Graphics
212-477-4288
http://www.2MinuteExplainer.com
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.