Is there a way to submit in Chrome Browser without Button?
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
Open development tool and set in watch window the following
$('form').submit();
(you need to reference jquery library on page)
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
精彩评论