I would like to clear Radiobutton list selection after user enters the text in the TextBox. I tried the following code but it doesn’t seem to be working and it doesn’t show any error. Please let me know if there are any suggestions.
function ClearRadioButtonList() {
var checkboxlistid9 = "#<%= rblLst.ClientID %>";
$('.checkboxlistid9').attr('checked',false);
}
<telerik:RadMaskedTextBox ID="txtCode" runat="server" Mask="###-##-####" SelectionOnFocus="CaretToBeginning">
<ClientEvents OnBlur="ClearRadioButtonList" />
</telerik:RadMaskedTextBox>
<asp:RadioButtonList ID="rblLst" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="1">Unknown</asp:ListItem>
<asp:ListItem Value="2">Not Applicable</asp:ListItem>
</asp:RadioButtonList>
Instead of:
Try:
Additionally I think your jQuery selector is wrong
I don’t see a class
checkboxlistid9on yourasp:RadioButtonListChange the query selector to:
Or