Pass a unique reference of a clicked element via AJAX

     

The title is somewhat confusing I'm not sure how to word it right as a title.


I'll try to explain better:  I have a forum page of course as in every other forum elsewhere you can comment on posts. Being able to delete what you wrote is something I should include.


To do this I was planning on setting up a separate page that deletes the comment and using AJAX to do it seamlessly. However