I have two buttons on my page that serve to delete users, one I placed at the top of the table where it displays the users along with the paging and the other at the bottom, also along with the pagination. I put it like this to facilitate user browsing but my jquery function that is triggered by the click event of that button only works with the top button if I put the buttons with different ids and two separate functions for each one they work, but he wanted a method that suited both of them.
//A função está mais ou menos assim
$("#deletar").click(function(){
//Faz algo aqui
}
I tested some jquery selectors, but I did not succeed.