Tuesday 15 September 2015

forms - Jquery Radio Button uncheck radio button, but should not clear value part -


I am trying to clear my form field on the reset button using the following code

  $ (': input', formId). No (': Button, deposit, reset, hidden'). Wall ('') Prop ('check', wrong) .removeAttr ('selected');   

Now my radio button is being unchecked, but the value set is also being cleared in the radio button.

I want to uncheck it, but the radio button value should be available.

You can use the function here:

  formId. Reset (); Reset   

reset form to its initial state.



No comments:

Post a Comment