116 said:
I am looking for some sample script to populate a dropdown with the current
year (yyyy) plus. Recall seeing some time in the past.
David
The current year plus what?
Plus 1, perhaps ?
If so, the JavaScript I have already sent can easily be modified
Something like this
<html>
<head>
<script type="text/javascript">
function nextYear() {
var d = new Date();
document.forms('form1').result.value = d.getFullYear() + 1;
}
</script>
</head>
<body>
<form name="form1" action="">
<input type="button" value="Click Here" onclick="nextYear()" /><br>
<input type="text" id="result" size="4" value="">
</form>
</body>
</html>
Not quite a drop down, but that is just a modification