0
How to get input in my website
Is there any way to store the input given by user from <input> tags and use the input in JS.
2 Respostas
+ 1
<input class="random" ..... onchange="storeval()" />
Storeval =()=>{
var inputvalue = document.querySelector(".random").value ;
///do something with inputval
}
+ 4
Hi! You can store user input in js variable