I have tried to find a solution here, but it does not work quite good in FF. See:
here (http://www.codingforums.com/showthread.php?t=70057)
Pyth007
10-13-2005, 07:25 PM
How about:
<input type='text' name='field1' id='field1' value='' onBlur="if (this.value!='') document.getElementById('field2').disabled=true">
and vice vs. for field2....
vwphillips
10-13-2005, 08:12 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--
function Inhibit(obj,id){
document.getElementById(id).removeAttribute('disabled');
if (obj.value.length>0){
document.getElementById(id).setAttribute('disabled','disabled');
}
}
//-->
</script>
</head>
<body>
<input id="IP1" size="10" onkeyup="Inhibit(this,'IP2');" >
<input id="IP2" size="10" onkeyup="Inhibit(this,'IP1');">
</body>
</html>