I have a div with class=\"tags\"
with one predefined hyperlink.
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/
You have to use the live-function:
$(".tags a").live("click", function() {
// ...
});
Because you are adding the links after the initial load, the standard click event won't be binded to the dynamic added links.