I want to be able to uncheck a radio button by clicking on it.
So, if a radio button is unchecked, I want to check it, if it is checked, I want to uncheck it.
This is the real solution ...
var check; $('input[type="radio"]').hover(function() { check = $(this).is(':checked'); }); $('input[type="radio"]').click(function() { check = !check; $(this).attr("checked", check); });
Try it, it works for me!