SyntaxFix
Write A Post
Hire A Developer
Questions
You can pass the inline handler the this keyword, obtaining the element which fired the event.
this
like,
onclick="confirmSubmit(this);"