javascript - How can I submit a form with input values in Chrome browser console? -


i trying manually submit form in chrome's developer console running code like:

$('form').submit(); 

how can specify input value of form in code? know input id/name.

document.queryselector('input[name="thenameofyourinput"]').value = 'thevalue'; document.queryselector('form').submit(); 

chrome console knows nothing of jquery. use vanilla js.


Comments