Ajax from database and action button
Ajax from database and action button
guyz
Posts: 2Questions: 1Answers: 0
Hello,
How do I create the following table using Ajax:
th:
1. id
2. name
3. delete
I need the delete button on the 3rd column to contain the id number represented on the id column.
Thank you.
This discussion has been closed.
Answers
What have you tried so far?
I don't understand how I can use the id inside the button - How do I access the id number in the same row?
I recommend doing some research on Stack Exchange. this is not a datatables specific question, but a javascript question.
https://stackoverflow.com/search?q=passing+variables+with+javascript+to+ajax
Hi @guyz .
This example here should sort you out,
Cheers,
Colin