$(this).nextAll(".Rec").find("input").attr("checked", false); $(this).prevAll(".Rec").find("input").attr("checked", false);