Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Disabled/Enabled WebDateChooser using javascript
posted

 Hello Sir

I m using IE 7 browser,ASP.NET 2005,Infragistic  .NET 2007 VOL 3 CLR 2.0 

I need to enabled or disabled WebDateChooser control using java script

I am using this function

function ButtonClick(id)
        {
           var radio = document.getElementsByName("<%=RadioButtonList1.ClientID%>");
           var WebDateChooserTo = document.getElementById("WebDateChooserTo");
           var WebDateChooserFrom = document.getElementById("WebDateChooserFrom");

          if(radio[intSelected].value == 'Weekly')
              {
               // WebDateChooserFrom.disabled = false;
                WebDateChooserFrom.setEnabled(true);
             }
          }

As I read from forum I had apply both possiblities but ir give me error

Java Runtime Error:object doesnt support this property or method

If is any problem with setting then what actually setting to be set ?

Thanks

Sonal