[jQuery] dynamic generated elements action
Hi there,
I have a problem, and I haven't found the solution after even ater
googling a lot.
I have a funtion written, which generates elements
for example
[HTML]
<div class='generated'> this is a div </div>
[/HTML]
And then I've also written a function which should give an alert after
clicking the div "generated"
$(".generated").click(function(){
alert("boo");
});
But acctually it doesn't work at all ;/
What am I doing wrong?
I'd be very gradeful for any tips
Best regards