How to use check box list as Radio button With Jquery

Posted by Unknown
How to use check box list as Radio button With Jquery

here i have a group of check boxes with name "groupchk" i want use this check boxes as toggle check or radio button the following function has made these functionality easy


 $('input[name="groupchk"]:checkbox').click(function () {
            var group = "input:checkbox[name='" + $(this).attr("name") + "']";
            $(group).attr("checked", false);
            $(this).attr("checked", true);
        });


i hope this will help you....
Labels:

Post a Comment

 
test