I have the following radio button. After selecting any radio button, I have a button "CLEAR". On clicking this button, the radio button should be unchecked. Could anyone help me with this? Thanks in advance.
My code:
<s:radio id="isPriTobaccoUsrId" cssClass="hixFieldText" name="testPlanDto.isPriTobaccoUsr" list="#{'Y':'Yes','N':'No'}" />
My javascript:
$('#isPriTobaccoUsrId').attr('checked',false);
$('#isPriTobaccoUsrId').prop('checked',false);
$('#isPriTobaccoUsrId').buttonset('refresh');
I tried these but no luck.
Also tried:
$('#isPriTobaccoUsrId').removeAttr('checked');