Question : input textboxes to submit button

2 input textboxes

form starts with
box1
when user enters month (2 digits) goes to year (4 digits) and then to submit button

Answer : input textboxes to submit button

Check this :

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<html><head>
<script language="javascript">
	function only(which, numberOfDigit,min,max) {
		which.value = which.value.replace(/\D/g,'');
		if( (which.value.length != numberOfDigit) || (parseInt(which.value)<min) || (parseInt(which.value)>max) ) {
			which.focus();
		}
	}
</script>
</head><body>
<form action="http://www.google.com" method="get" >
Month&nbsp;:&nbsp;<input type="text" maxlength="2" onKeyUp="only(this,2,1,12);" onBlur="only(this,2,1,12);" />&nbsp;Year&nbsp;:&nbsp;<input type="text" maxlength="4" onKeyUp="only(this,4,2000,2010);" onBlur="only(this,4,2000,2010);" />
<br />
<input type="submit" value="submit" />
</form>
</body></html>
Random Solutions  
 
programming4us programming4us