how to change input value in javascript using class

Solutions on MaxInterview for how to change input value in javascript using class by the best coders in the world

showing results for - "how to change input value in javascript using class"
Gaia
25 Apr 2018
1// Find the input element with a class of "bar" that is a direct child of a form with a name attribute of "foo"
2document.querySelector("form[name='foo'] > input.bar").value = "hehe works"