Please help me to come out of this
I have already this part:
$(':input[type=radio]',taskClass).not(':button, :submit, :reset, :hidden').val('')
.removeAttr('checked');
Please help me to come out of this
I have already this part:
$(':input[type=radio]',taskClass).not(':button, :submit, :reset, :hidden').val('')
.removeAttr('checked');
Try this if radio button is deselected, then clear its value
if( $(':input[type=radio]').is(':checked') == false ) {
$(this).attr('checked',false).val('');
}
Check out here is good post How to uncheck a radio button?
Use following syntax
$(this).prop('checked', false);
I just located the radio buttons with the name
$("[name=radio-button-name]").prop('checked', false);