I have a div with class=\"tags\" with one predefined hyperlink.
class=\"tags\"
myLink
Your click event only attached to current dom element not to future element.If you want to add this event to all element include future then you have to use live event in jquery. http://jsfiddle.net/6cGvt/