-2
Guys I have a problem in my code that may be simple to solve but I ended up getting stuck, I’m doing a crud and the add, edit and delete buttons added via Controller in the construction of table cells:
My buttons were repeated per line, that is, for each line of my list of additions in the database, there are the three buttons;
Using Jquery I captured the id of my add button and redirect to the page responsible for insertion in the database, but only my add button from the first line works, the other buttons have no function. Could someone please explain to me what I did wrong? Follow my Jquery code:
Thanks a lot bro, it helped a lot the feedback of you, sometimes I forget the importance of using class instead of id when there are several of the same button, solved my problem!
– Cristian Guilherme Petry