+ 1
Could someone tell me how I get the value of an input type "input" I can not access the attribute value from the js, I've been t
I need get the value of a input type "input" please
2 Respostas
+ 6
document.getElementById("your id").value should work.
Idk any other way. 😅
0
var x = document.getElementById("input_id");
you can assign a value first ( var y = x.value) then use it;
y * 8
690 * y - 5
..
or
you can just use input (x.value):
x.value = "8"
x.value + 99 * 3;
88 + x.value