.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > How to Enable a RadioButton in ClientSide???????
 

How to Enable a RadioButton in ClientSide???????

Hi,

Can any1 tell me how to enable a radiobutton in ClientSide , Which is already disabled in Server Side.

Check this code and tell me if it addresses any thing Wrong???

var ddl = document.getElementById('RadioButton1');

ddl.disabled = false;

The status has been Changing for "ddl.disabled = false",but the Radio Button is not still enabled.

Can any one solve this for me??

Regards,

Venny

iam_venny

Sorry for the late reply. I havent checked out this forum for long

SO u can enable a ASP radio button if u use the following code in Javascript

var ddl = document.getElementById('RadioButton1');
ddl.disabled = false;
ddl.parentElement.disabled = false;
return false;

Hope u got the answer

Regards,

Vennny

iam_venny
function objDisabled(bool)
{
var frm = document.forms[0];

for (var cnt = 0; cnt <= frm.elements.length - 1; cnt++)
{
var element = frm.elements[cnt];
if (element.type == "radio")
element.disabled = bool;
}
}
lamy

Hi

Did the above code work ? i am not able to get it working on a ASP radio button that has been disable using server side code.

Anu Viswan

Sorry for the late reply. I havent checked out this forum for long

SO u can enable a ASP radio button if u use the following code in Javascript

var ddl = document.getElementById('RadioButton1');
ddl.disabled = false;
ddl.parentElement.disabled = false;
return false;

Hope u got the answer

Regards,

Vennny

iam_venny
it worked perfectly for me .. thnx
ninja2605
This works perfect in IE but i am not able to get it working in mozilla and other browsers. Is there any solution???
regards,
Ravi.
RavikumarP

You can use google to search for other answers

Custom Search

More Threads

• Welcome to JScript for the .NET Framework Forum...!!!
• How to use BrowseForFolder in IE 7.0
• Microsoft JScript runtime error: 'offsetTop' is null or not an object
• in browser not showing
• JScript innerHTML value
• Syntax to pass the value of a textbox from an edittemplate to a javascript function
• check Active Directory Data withJScript
• how to get ID of an element for which an event is called, without passing event as a parameter in firefox
• How to specify referrer for a page header in html or jscript?
• jQuery in visual studio 2008