This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - the javascript method cannot work

lena - Monday, January 6, 2014 4:13 AM:

why the form cannot suport the javascript method?

I  want  to get the  one of  the form's textbox's object in cilent-side. So I wrrtie a  stentence like this:

var  title=document.getElementById("title");

but  it produce error : "null" is null  is not an object.

there is a textbox named title in my forn. Let alone other textboxs.

why  i cannot get the object just like the same in visual studio?Is there anything I have missing?Please help me.



Harsha - Monday, January 6, 2014 9:24 AM:

Tried this?

var title = document.fieldsTab["title"].substring(0, 32);  



lena - Tuesday, January 7, 2014 2:47 AM:

Thanks ! it works!  you are my God!