Jquery Radio Button uncheck radio button, but should not clear it value.
I am trying to clear my form fields on reset button using following code
- $(':input',formId).not(':button, :submit, :reset, :hidden').val('').prop('checked', false).removeAttr('selected');
Now my Radio button is getting unchecked, but value set in radio button is also getting cleared.
I want only to uncheck it, But value of the radio button should be available. Please help