<input name="hobbies" value="" type="radio" />唱歌
<input name="hobbies" value="" type="radio" />游泳
<input name="hobbies" value="" type="radio" />跑步
$(':radio').click(function () {
var r = $(this).attr("name");
$(":radio[name=" + r + "]:not(:checked)").attr("tag", 0);
if ($(this).attr("tag") == 1) {
$(this).prop('checked',false);
$(this).attr("tag", 0);
}
else {
$(this).attr("tag",1);
}
});