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
Add ids to each button and select the id with jQuery.
id
Or, if the forms have ids, then just target the form and submit it like so:
$("#form-id").submit();