i want an onclickevent to change the text in a text box - how can i do this with getelementbyid
thanks kris
Printable View
i want an onclickevent to change the text in a text box - how can i do this with getelementbyid
thanks kris
Does the textbox actually have an id?
Otherwise, just access it through the form, or use .elements[]
Also bear in mind that Javascript is case sensitive, so you must use document.getElementById('id')
Just in case you've been trying getelementbyid
ino that -- it was the property i wanted ... dw i have found out now
getElementById('txtTo').value
is what i wanted 2 no