1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<head>
<script language="JavaScript" type="text/JavaScript">
function Autotab(box, longueur, texte)
{
if (texte.length > longueur-1) {
//document.forms[formulaire].elements[input].focus();
document.getElementById('box).focus();
}
}
</script>
</head>
---------------------------------------------------------------
<input type="text" name="jj" maxlength="2" size="2" style="width:20px" onkeyup="Autotab('mm', this.size, this.value); "/> /
<input type="text" name="mm" maxlength="2" size="2" style="width:20px" onkeyup="Autotab('aaaa', this.size, this.value); "/> /
<input type="text" name="aaaa" maxlength="4" style="width:35px"> |
Partager