I would like to clear Radiobutton list selection once user click the button. I have tried the following code but clears the selection in browser. When I access from backend(C#) selection is there. It doesn't clear the selection of the control really I guess. Any suggestion please.

<SharePoint:DVRadioButtonList ID="rblLst" runat="server" RepeatDirection="Horizontal">
<br/><input type="button" id="btnClearrblfinance" value="Clear Selection" onclick="ClearSelectionrblfinance()" />

JQuery to clear the control

$("table[id$=rblLst] input:radio:checked").removeAttr("checked");

Try below code:

$("table[id$=rblLst] input:radio:checked").prop('checked', false);


$("#btnClearrblfinance").prop('checked', false);

Refer this link - https://jquery.com/upgrade-guide/3.0/#attributes

| improve this answer | |
  • rohit-waghela, in my case functionality working in browser. But it doesn't reflect in code behind. – Sivakumar Piratheeban Mar 26 '18 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.