[jQuery] How do I select (use) a link in the html I appended?
Hi there,
First post here.....and uhhhhh well, I'm very busy making a site with
jquery and all, and maybe this is just a simple question and I'm
to ...... to see it, but PLEASE, can someone help me with the next: :-
D
I have something like this:
$('#panelclick').click(function(){
$('#panel').append('<table><tr><td><div id="link1">Link 1</div></
td><td"><div id="link2">Link 2</div></td></tr></table>');
});
$('#link1').click(function(){..................blablabla
But this doesn't work.
When I open the "panel", and the html is appended to it, the link
doesn't work.
How can I select it? What am I doing wrong here?
Hope someone will come with a nice answer ;-)
Greetzz
nounou