SyntaxFix
Write A Post
Hire A Developer
Questions
You want to use the live() function. See the docs.
live()
For example:
$("#anchor1").live("click", function() { $("#anchor1").append('<a class="myclass" href="#">test4</a>'); });