Elsalmo 3alikom wa ra7mt ALLAH,
Dear,
If you work with HTML button then,
Give all Button same class,
<button class="edit" onclick="yourFunction();"></button>
then you have to add this function
function yourFunction()
{
$('.edit').attr('onclick',null);
}
this function will remove all onclick attribute from all button with class='edit'
even your clicked button.
if you want to don't remove onclick from the trigger button, Let me know and I will handle this for you.
Best Regards
Ahmed Assaf
eBusiness Developer