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
Way late to the party, but if your submit buttons have names:
$("input[name='submitbuttonname']").click();