0

How can J change the value of an input tag without writing it? Just by JavaScript code.

5th Apr 2020, 2:13 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
6 Réponses
+ 1
5th Apr 2020, 2:43 PM
Russ
Russ - avatar
+ 3
i.value = "newvalue" Here i is a valid HTMLInputElement.
5th Apr 2020, 2:33 PM
Kevin ★
+ 2
tag.value = "whatever you want"
5th Apr 2020, 2:33 PM
Russ
Russ - avatar
+ 1
It only changes the value you actually see but not the actual value as much as I know
5th Apr 2020, 2:38 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
5th Apr 2020, 2:38 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
+ 1
Alright thanks
5th Apr 2020, 2:48 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar