0

How to display message in a text box

19th May 2019, 12:58 PM
Chuma Mqeke
Chuma Mqeke - avatar
2 Antworten
+ 20
Hello You can use DOM Input Text Value Property here. <input type="text" name="textbox1" id="t1"> Assume this is your textbox in your HTML code Then In JavaScript i.e. in the script tag, you can use the Input Text Value Property : document.getElementById('t1').value="Text Sucessfully Inserted !!"; Using this the value is returned to the text box with the specified id. You can also use a button and place the Javascript code in the function and call that function using onclick event attribute. This would be more clear. Hope this helps !!!
19th May 2019, 1:34 PM
Nova
Nova - avatar
0
Just type on it.
19th May 2019, 3:17 PM
Calviղ
Calviղ - avatar