Answer the question
In order to leave comments, you need to log in
How to pass a unique ID value to ajax?
Messages are displayed on the site, they are taken from the database, I decided to delete messages when clicking on the button in these messages. That is, when you click to delete a message, the value of the ID of this message must be transmitted via Ajax in order to find this message in the database in the PHP handler and delete it. Only now I don’t know how to take and get the ID in Ajax , I tried to get the ID simply through a variable, it selects the very first message, that is, the very first ID . Help, how to display a unique message ID using Ajax ?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question