Question: 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');

```

Answer: 
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?](https://stackoverflow.com/questions/2117538/jquery-how-to-uncheck-a-radio-button)

Use following syntax

```
 $(this).prop('checked', false);

```