Hello all,
I'm fairly new to ASP and Javascript.
I'd like to change some properties of ASP Form Elements via Javascript and I am having a very difficult time doing so. The element is defined as:
But Im not having any luck modifying it with Javascript like this:Code:<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
Can anyone shed some light on this for me? One thing I noticed is that (At least in VS2010 intellisense) the elemtn doesn't seem to have a disabled attribute like a standard HTMLCode:function enableFields() { document.form1.txtFirstname.disabled = false; }
Thanks in advance for helping!Code:<Input type="text" id="text1" disabled="true">


Reply With Quote

Bookmarks