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:

Code:
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
But Im not having any luck modifying it with Javascript like this:

Code:
function enableFields() {
    document.form1.txtFirstname.disabled = false;
}
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 HTML

Code:
<Input type="text" id="text1" disabled="true">
Thanks in advance for helping!