Sunday, 2 September 2012

How can I check box list select only one item selected in MCV 3 using jQuery:


Hie... here i'm doing that giving roles to login user with help of checkbox... for that an user must need to check only one checkbox at a time...  remain must ve to be in unchecked state, nothing but their fuctionality like radiobutton...  so for that i'm doing it using in Jquery as follow:


$("#RegistrationForm :checkbox").click(function () {
    $("#RegistrationForm input:checked").attr("checked", "");
    $(this).attr("checked", "checked");
});




No comments:

Post a Comment