Hello,
I have come with a small prototype. Let me know if it works for you.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
function enforce(ctrl) {
if (ctrl.id === "txtName") {
$('#chkOne').prop("disabled", ctrl.value.length > 1);
$('#chkTwo').prop("disabled", ctrl.value.length > 1);
}
else if (ctrl.id === "chkOne") {
$('#txtName').prop("disabled", ctrl.checked);
$('#chkTwo').prop("disabled", ctrl.checked);
}
else {
$('#txtName').prop("disabled", ctrl.checked);
$('#chkOne').prop("disabled", ctrl.checked);
}
}
</script>
</head>
<body>
<form id="frmMain" name="frmMain" method="post">
<pre>
Name : <input type="text" id="txtName" name="txtName" onChange="enforce(this);"/>
Nationality : <input type="checkbox" id="chkOne" name="chkOne" value="O" onChange="enforce(this);"/>One
<input type="checkbox" id="chkTwo" name="chkTwo" value="T" onChange="enforce(this);"/>Two
</pre>
</form>
</body>
</html>
Regards,