In the above example you can see that there is multiple submit buttons which does adding and deletion respectively. Button onclickmyfunclick mebutton.
This function will update some column in database to. Here is the example of button click example javascipt.
This function will update some column in database to 1. Script function myfun document.