javascript assign value to input using name

Solutions on MaxInterview for javascript assign value to input using name by the best coders in the world

showing results for - "javascript assign value to input using name"
Alejandra
17 Mar 2019
1document.querySelector('input[name="myInput"]').value = 'Whatever you want!';
2