I am clicking a submit button using this:
$(\'input[type=submit]\').click();
The problem is that I have more that 1 submit button on my page s
One other suggestion!
I had a form with multiple submits, that also had varying value attributes, so I couldn't simply submit the form after I performed my built in confirmation.
Instead, I added a few hidden buttons that I forced a click on after I got a Yes back from my confirmation.
Here are the buttons:
And here's the jQuery: