I\'m trying to reorganize my code and make it more unobstrusive.
Mainly, there is a link for performing an action. If you click on the link, the action is performed via
Since you are dynamically adding new items to the DOM, you will have to register the click handler again on the new items.
You can use .live for this.
Update
Since jQuery 1.7, the .on method is preferred way to do this.
Since jQuery 1.9 the .live method has been removed.