I am currently using Javascript to try attempt this, could it be the way I am linking the checkbox to the script? If so any advice would be helpful. Edit- The checkboxes are within a foreach loop and radio boxes will not work as this is not the exact situation I am using this in.
Checkboxes
@Html.CheckBoxFor(modelItem => item.ambassador, htmlAttributes: new { @class = "checkbox", type = "checkbox" })
@Html.CheckBoxFor(modelItem => item.groupSelection, htmlAttributes: new { @class = "checkbox", type = "checkbox" })
Javascript
<script>
$('.checkbox').change(function () {
$(this).siblings('.checkbox').prop('disabled', this.checked);
});
</script>
The Javascript code is from this question: Disable Checkbox on selecting another checkbox in mvc4
` tag)?
– Jan 26 '17 at 23:30