Reputation: 1590
I want to force a submit for debugging purposes. Is there a way to submit a form in Chrome without javascript or jquery through developer tools?
Thanks, Matt
Upvotes: 4
Views: 9717
Reputation: 63588
In plain JavaScript, type this in the location/address bar (or in the console without the protocol prefix)
javascript:document.forms[indexOrName].submit();
e.g.
javascript:document.forms[0].submit();//first form
javascript:document.forms['myForm'].submit();//form by name
Upvotes: 9
Reputation: 2624
Open development tool and set in watch window the following
$('form').submit();
(you need to reference jquery library on page)
Upvotes: 10