I have seen that if I put a radiolistbutton on a page with 3 radiobutton and the first (as example) is not enable at design time (so server side), i can't enable it from javascript with something like this var btlList = document.form1.elements["RadioButtonList1"]; btlList[0].disabled = false; This because of its rendering in HTML <table id="RadioButtonList1" border="0"> <tr> <td><span disabled="disabled"><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="pippo" disabled="disabled" /><label for="RadioButtonList1_0">pippo</label></span></td> </tr> <tr> <td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="pluto" /><label for="RadioButtonList1_1">pluto</label></td> </tr><tr> <td><input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" value="paperino" /><label for="RadioButtonList1_2">paperino</label></td> </tr> </table> Do you see? There's a "span" which is disabled. So from javascript i can enable the radioButton, but the span is still disabled, so the children.. radiobutton I can solve that? PLS HELP! Thank you all
"Fabio Mastria" wrote in message news:9F5D8385-2AB8-4B07-B06C-6E438EAE1E45@microsoft.com... > I have seen that if I put a radiolistbutton on a page with 3 radiobutton and > the first (as example) is not enable at design time (so server side), i > can't enable it from javascript with something like this > > var btlList = document.form1.elements["RadioButtonList1"]; > > btlList[0].disabled = false; > > > This because of its rendering in HTML > > <table id="RadioButtonList1" border="0"> > <tr> > > <td><span disabled="disabled"><input id="RadioButtonList1_0" type="radio" > name="RadioButtonList1" value="pippo" disabled="disabled" /><label > for="RadioButtonList1_0">pippo</label></span></td> > </tr> > > <tr> > <td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" > value="pluto" /><label for="RadioButtonList1_1">pluto</label></td> > </tr><tr> > <td><input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" > value="paperino" /><label for="RadioButtonList1_2">paperino</label></td> > </tr> > </table> > > Do you see? There's a "span" which is disabled. So from javascript i can > enable the radioButton, but the span is still disabled, so the children.. > radiobutton > > I can solve that? PLS HELP! > var btn = document.getElementById("RadioButtonList1_0") btn.disabled = false btn.parentNode.disabled = false -- Anthony Jones - MVP ASP/ASP.NET