delete records displayed from while loop with jquery
I would like to display records with a delete button next to each one.
When the user clicks the button it deletes that particular record.
I created a form on each line item but when I click the button it only deletes the first record and not any of the other records.
How do I make the button send the recordID of the record that needs to be deleted?