A me non funziona. ed ho fatto:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" type="text/javascript">
var oldOnload = window.onload;
window.onload = function() {
if (oldOnload) oldOnload();
var i1 = document.getElementById('input1');
var i2 = document.getElementById('input2');
i1.onkeyup = function() {
if ((/S+/).test(this.value)) {
i2.removeAttribute('disabled');
}
else {
i2.disabled = 'disabled';
}
}
}
</script>
</head>
<body>
<input type="text" id="input1" name="i1" />
<input type="text" id="input2" name="i2" disabled="disabled" />
</body>
</html>
Cosa sbaglio? :master: