jQuery.find on newly created elements alert($('<p id="aa">xxx</p>').find("#aa").length);
- by Sqlclown
I am trying to lookup elements within a dynamically created element. For some reason this fails. Why does the following return "0"? How to fix this?
alert($('<p id="aa">xxx</p>').find("#aa").length);