I have dynamically added buttons on my page inside a table. Two buttons, with classes "editbuttonclass" and "deletebuttonclass".
I am using this jQuery selection to run on my button click event, it runs on both buttons though, how can I run separate functions depending on the button class?
jQuery
$('#table').on('click',"button", function(e){})
I have tried this but it doesn't work:
$('#table').on('click',"button .editbuttonclass", function(e){})
"button.editbuttonclass"