Hi all, I'm new to jquery, so bear with me. I have discovered that elements that were written to the document using the html() manipulation function can not be selected later on. Specifically, I have added some <a> elements to the page using html(). The elements look like this:
<a class="delete" id="3" href="#">delete</a> In my javascript doucument, I have a click function to do something when these elements are clicked, like this: $(".delete").click(function(){ do stuff... }); This does not work and the code inside the click function is not executed. However, if I just write the same <a> tag above into the HTML document, the click function is now executed when I click on the link. So it seems that you can't select an an element unless it was originally part of the HTML, and not something added later on through manipulation. Is this normal?