I am trying to manually submit a form in Chrome's developer console by running code like:
$('form').submit();
How can I specify the input value of the form in this code? I know the input id/name.
I am trying to manually submit a form in Chrome's developer console by running code like:
$('form').submit();
How can I specify the input value of the form in this code? I know the input id/name.
document.querySelector('input[name="theNameOfYourInput"]').value = 'theValue';
document.querySelector('form').submit();
Chrome console knows nothing of jQuery. Use vanilla JS.