0
How to display message in a text box
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 !!!
0
Just type on it.