SyntaxFix
Write A Post
Hire A Developer
Questions
$(document.body).on('click', 'buttontrash', function () { // <-- changes alert("aa"); /$(this).closest('tr').remove(); return false; });
This works perfectly, take not of document.body