Disable Checkbox On Selecting Another Checkbox In Mvc4
I have 3 checkboxes and how I can disable remaining two checkboxes on selecting one checkbox My code is model public bool checkbox1{get; set;} public bool checkbox2{get; set;} pub
Solution 1:
Something like this? http://jsfiddle.net/6tdhm4p2/1/
$('.checkbox').change(function(){
$(this).is(':checked')?$(this).siblings('.checkbox').prop('disabled',true):"";
});
Post a Comment for "Disable Checkbox On Selecting Another Checkbox In Mvc4"