I'm having trouble removing a class when checking another radio button in the same group. Right now, the class sticks and never goes away.

```
$(function(){

$('input[name=radio]').change(function(){          
        if($(this).is(":checked")){
              $(this).closest('div').addClass("payBoxSelected");
            } else {
              $(this).closest('div').removeClass("payBoxSelected");
            }                                               
   });

});

```

Any idea why this isn't working?