Simple in jQuery, but I haven't figured out to only allow one checkbox checked at a time (used to enable editing a specific user): I'm using the following simple jquery to enable/disable buttons:
function
onCheck(e) {
if
($(
'input.checkTreeview'
).is(
':checked'
)) {
$(
'#addUserButton'
).attr(
'disabled'
,
'disabled'
);
$(
'#modifyUserButton'
).attr(
'disabled'
,
false
);
}
else
{
$(
'#addUserButton'
).attr(
'disabled'
,
false
);
$(
'#modifyUserButton'
).attr(
'disabled'
,
'disabled'
);
}
}
Anything I can do here to allow only one checkbox checked at a time?