Use jQuery to attach to the click event of the radio button list and then use the jQuery :enabled
selector, like this:
$('#rdStatus').click(function () {
if($(this).is(':enabled')) {
// Do enabled radio button code here
}
else {
// Do disabled radio button code here
}
});
Now you can remove the onclick
attribute of your radio button list markup, because jQuery is going to find the radio button list (rdStatus
) and wire up the click event to it for you.
<asp:RadioButtonList ID="rdStatus" runat="server" RepeatDirection="Vertical">