[jQuery] $('element').fn(); not working after adding html to DOM... wonder if anybody can help :O

[jQuery] $('element').fn(); not working after adding html to DOM... wonder if anybody can help :O


ok...
I call an ajax function, get the data and translate it into html
markup and then add it to the DOM,
i.e. <div id="myDiv"></div>
if I call $('#myDiv').nameOfFunction(); it will just not recognize the
added markup :|
I don't know if anybody is capable of helping, but hopefully somebody
can! Would be really awesome!!! :D