Ver original<form><input type="text" name="txt1" onkeyup="txt2.disabled=this.value.length>0" /><input type="text" name="txt2" /></form>