binding jQuery to elements after a page load?
Hi all,
I've recently started programming and came across jQuery.
Searching the web for how-to's has tought me quite a bit, but i also see that most scripts start with the command to wait for the page to load before doing anything else.
For my pet project i am getting output from a live database search into a div container. However, i can not get jQuery to bind functions to the elements on the page that is loaded dynamically.
With bind functions i mean something like:
$("div[id=moreinfo]").hide(); # pretty self-explanetory..
At least i think that's the problem... (Hope i'm making sense here..)
Is anyone experiencing the same behaviour? Is this by design or am i doing something wrong?
Or should i sperately script something to happen on a page load for this?
Hope i'm making sense and that someone can help me..
Thanks!
Den