I am making ajax requests which return elements in a table. That all works great and it displays properly. However, I notice that any elements that are appended to the table that contain something like so
<div id="myId">Some Text</div>
will not be bound by previous javascript methods that bind to the myId method like so:
$("#myID").click(function() { alert("HI!") };
It works well on anything loaded before ajax is called but if it's html populated by ajax then for some reason those tags don't realize that they should listening for clicks.
Anyone have any insight on this. I'm using JQuery for what it's worth