Reputation: 53
I'm kind of a noob in jquery, so i'm sorry if the question is a little obvious.
I wondered how should I handle an element which is created using the .html()
jquery method, so
there is no way to handle it after $(document).ready
. Is there anyway to create the handler when the element is created or something?
Upvotes: 1
Views: 69
Reputation: 15616
For an example:
$("#mydiv").html("<span>Content</span>");
$("#mydiv span").css("background-color","blue");
so, call it after you set the .html().
Upvotes: 0