174
rated 0 times
[
180]
[
6]
/ answers: 1 / hits: 32771
/ 10 Years ago, mon, march 10, 2014, 12:00:00
This is what happens on event:
$('div#pages').append($('<div class=page id=test>...</div>'));
And then, on another event it fails doing this:
var page = $('div.page#test'); // returns empty array
I've debugged, and the appended html appears in the document structure after appending, but fails to get selected. Doing the same in browser console works perfectly.
What could be the problem?
More From » jquery