win2 win2 - 1 year ago 92
Javascript Question

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

public bool checkbox1{get; set;}
public bool checkbox2{get; set;}
public bool checkbox3{get; set;}



When I select checkbox 1, remaining 2 checkboxes should be disabled and vice versa. I am new to programming. can u help me out using javascript

Answer Source

Something like this?