I have searched for an answer but couldn\'t find one!
I have a simple form,
In my case, I didn't have a form ID and couldn't add inline in the form tag. I ended up with the following jQuery code
form
var form = $("form").first(); form.on('submit', function() { return confirm('Are you sure you want to submit this form?'); });