How can I access an MSTextbox via Javascript?

A

aaa

I was unable to get this to work with MS Web Textbox only html. In other
words the javascript says the object doesn't exist when I try to reference
the Textbox1:

document.all["Text1"].setAttribute("value", oCell.getValue());
 
M

mkn

Not sure this is the best way as I'm new to this domain, but I tested this
successfully:

textbox = document.getElementById('TextBox1');
textbox.setAttribute("value", "testing");
 
A

aaa

that doesn't work.

mkn said:
Not sure this is the best way as I'm new to this domain, but I tested this
successfully:

textbox = document.getElementById('TextBox1');
textbox.setAttribute("value", "testing");

aaa said:
I was unable to get this to work with MS Web Textbox only html. In other
words the javascript says the object doesn't exist when I try to reference
the Textbox1:

document.all["Text1"].setAttribute("value", oCell.getValue());
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,144
Messages
2,570,823
Members
47,369
Latest member
FTMZ

Latest Threads

Top