+ 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

27th Jul 2019, 4:24 AM
Propy Grammar Moruzian
Propy Grammar Moruzian - avatar
2 Antworten
+ 6
document.getElementById("your id").value should work. Idk any other way. 😅
27th Jul 2019, 4:49 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
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
27th Jul 2019, 5:09 AM
Ginfio
Ginfio - avatar