I have a lightbox variation (boxy to be specific) that I am using to load some remote HTML via AJAX. Inside of the remote HTML, which is basically a login panel, I have some javascript to process the login.
However, the normal jQuery methods don't have any affect on the elements inside of the HTML that was loaded via AJAX. If, inside my remote HTML javascript, I add an element to the remote HTML using document.createElement, then the jQuery methods work fine. The methods I am trying to get to work are things like hide(), focus(), basically anything. If I use document.getElementById(''), the focus() method does work. It's just that getting the jQuery object (wrapper? - I don't quite understand how the elements are extended) using $('') shortcut or jQuery('') doesn't return an object that will respond to methods executed on it. If I alert the hide function off of the element, I see the code, and I am not getting any errors when it executes - just nothing happens. Any ideas? Is there a way that I can "register" the elements with jQuery?