ryanlum Posted October 24, 2005 Share Posted October 24, 2005 Hey guyz,I would like to ask, how can you change the values for a textbox using hardcoding?something like ( document.text.value = ??)i used the code above but i am not able to get anything...pls help.thx in advance:) Link to comment Share on other sites More sharing options...
MadPotato Posted October 24, 2005 Share Posted October 24, 2005 try document.getElementById("text").value = "xxxxx" Link to comment Share on other sites More sharing options...
actionsketch Posted October 24, 2005 Share Posted October 24, 2005 Also, it should be mentioned that if you use <textarea> or anything where the text you want is located within two tags( ex: <div></div>) you can access it by using document.getElementById('myId').innerHTML = "boo"; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now