0
When i click on button why it not print the value on input box ??
<input type="text" name="answer"> <input type="button" value="1" onclick="forms.answer.value += '1' ">
9 odpowiedzi
+ 2
try replacing the onclick value with this.
document.querySelector("input[type='text']").value += "1"
+ 2
i post the photo u can see at my profile
+ 1
seniru and Emma
sorry it's not working
+ 1
yes its working here thnx
but when i do same thing on my lappy in notepad it's not working if u have any idea plz tell me
+ 1
in result it give two box as for a input and not showing button like function
+ 1
Hejab