why can’t i select the div i need using $.post?
trying at callback function:
$.post("file.php", { param_s: $('#input').val()},
function(data) {
$('#'+donde).html(data.find('#router').html);
});
And firebug jumps:
data.find is not a function
normally i would $('#where').load('file.php?param=foo #myDiv') but this file responds by $_POST..
how can i manipulate the data response so i can filter the desired selector?
Since
findis a jQuery method anddatais not a jQuery object,findis undefined.Simply wrap
datain a jQuery object: