How can i create a dynamic listener using jquery to run different ajax tasks?
For example, stackoverflow have a delete link for each comment without onlick in it, so i’m guessing that they created a class listener, but how does it know which id to use in the ajax url?
Your HTML could contain something like:
Then, with jQuery, you could add callbacks on that class: