I am trying to work with a dynamic button that has unique ids. When the button is clicked, I need to pass the id to my btnDetails_Click event in C# or store it in a variable for efficiency. Here's what I have so far:
$("button").click(function() {
// How can I pass this.id to my btnDetails_Click event in C# or save it to a variable?
});
As I am new to JavaScript, any guidance on how to achieve this would be greatly appreciated!