|
-
May 17th, 2004, 05:41 AM
#1
onclick to change textbox
i want an onclickevent to change the text in a text box - how can i do this with getelementbyid
thanks kris
-
May 17th, 2004, 07:22 AM
#2
Retired VBF Adm1nistrator
Does the textbox actually have an id?
Otherwise, just access it through the form, or use .elements[]
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
May 17th, 2004, 07:27 AM
#3
Frenzied Member
Also bear in mind that Javascript is case sensitive, so you must use document.getElementById('id')
Just in case you've been trying getelementbyid
-
May 17th, 2004, 04:49 PM
#4
ino that -- it was the property i wanted ... dw i have found out now
getElementById('txtTo').value
is what i wanted 2 no
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|