Is there a way to pull a div out of a get response? ive tried all sorts of uses behind the find, even the (expr,contenxt) method and im just getting stuck at every corner. This is what im currently doing but I have to append to the dom HTML data all the time, after one click event, my hide and show no longer work. So im trying to see if i can just pull the div out, w/o having to append to the dom.
$(document).ready(function(){ $('body').append('<div id="hiddenDiv" style="display: none;"></ div>'); $("a2").unbind("click").click( function(){ var destination = $(this).attr("href"); $('#bodyframe').hide(1600,function() { $.getIfModified(destination, function(data){ //alert($(data)); $('#hiddenDiv').append(data); content = $('#bodyframe').html(); //alert(content); //$('#hiddenDiv').remove(); $ ('html').children('body').children('center').children('#frame').children('#content').children('#bodyframe').html(content).show(); }); }); return false; }); });