Question : setting Enabled in JavaScript

I want to enable/disable controls in JavaScript.  I have this JavaScript function.  It's being called, and the last alert statement tell me that the Enabled Property is false or true, depending on what I pass in.   I initially set the controls to enabled = false.  However, I do not see any results on the screen, i.e.,  if I pass true, the controls are not enabled.   Any ideas on what might be wrong?


function EnableControls(value) {
            alert(value)
            alert("here")
            var brand = document.getElementById("<%= txtBrand.ClientID %>")
            var contact = document.getElementById("<%= txtContact.ClientID %>")
            alert("here1")
            brand.Enabled = value
            contact.Enabled = value
            alert(contact.Enabled)
        }

Answer : setting Enabled in JavaScript

The quotes are coming in front for 059105130?  I'd expect them (or hope for them) for 059L042M6 since it is not numeric.  Since some of the "numbers" are non-numeric, have you tried explicitly using a text format rather than numeric?  A text format should retain all characters (since it's not trying to process it as a number).
Random Solutions  
 
programming4us programming4us