Results 1 to 3 of 3

Thread: Write the value to the Hidden Field thru JS

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2009
    Posts
    105

    Write the value to the Hidden Field thru JS

    Hi All,I wnat to set the HIDDEB FIELD VALUE THRU JS. But I am gettin the error,can anyboy help me out!

    Code:
      <input id="HiddenField1" type="hidden" value="" runat="server" />
    Code:
    var _textbox1= document.getElementById('<&#37;= textbox1.ClientID %>');
    document.getElementById('HiddenField1').value = _textbox1.value;
                     alert(document.getElementById('HiddenField1').value);
    ERROR(IMAGE ATTACHED)
    Attached Images Attached Images  
    Last edited by gtyagi; Mar 14th, 2010 at 11:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width