0

How do you gather input from input tags in HTML using JavaScript?

8th Jun 2022, 2:39 PM
Ava Alford
2 Answers
+ 3
use the value attribute document.getElementBYId("inputIdName").value https://code.sololearn.com/W9hoxIY3U6OX/?ref=app
8th Jun 2022, 3:40 PM
NonStop CODING
NonStop CODING - avatar
0
By using : document.querySelector('put your id name here ').value; for example const username = document.querySelector('#username'); alert(username.value);
12th Jun 2022, 6:32 AM
Jasy Fabiano
Jasy Fabiano - avatar