Does anyone know any good "Graduation Year" Calculator Scripts out there?
I was thinking something somewhere along the lines of a simple dropdown box with grade levels, then a textbox to the right that would populate based on the current day/year. The tricky part would be to have the script recognize that the school is from August to May, and that the Graduation year is the May year of the 12th grader.
Using the today() javascript should do the trick, right?
Any help would be awesome. Thanks!
http://lamorindasc.com/_js/agegroup2.js
I found this script, if it helps. It's just a calculator of which soccer division a kid can play in based on their grade. Kinda cool, but it has to be adjusted per year. I'm thinking if they included today() in there somewhere, it could automatically update.
<link href="http://lamorindasc.com/css/main.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript" src="http://lamorindasc.com/_js/agegroup2.js"></script>
<!-- InstanceEndEditable -->
<table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td> <form id="form1" method="post" action=""><table class="agtable" >
<tr>
<td bgcolor="#FFFFFF" ><h3>2013-2014 Age Group Calculator</h3>
<p>Fill in the birthdate, then press "enter".</p></td>
</tr>
<tr>
<td width="560" bgcolor="#FFFFCC" ><strong>Player's Birthdate</strong>:
<label for="dob"></label>
<input type="text" name="dob" id="dob" onChange="checkAge()" >
format: YYYY-MM-DD</td>
</tr>
<tr>
<td><strong>The Age:</strong> </b>
<input type="text" name="age" id="age" size="5" maxlength="5" readonly/>
<strong>The Age Group:</strong> </b>
<input type="text" name="agegroup" id="agegroup" size="5" maxlength="5" readonly/>
(automatically filled in for you)</td>
</tr>
<tr>
<td><input type="reset" name="reset" id="reset" value="Clear" /></td>
</tr>
</table>
</form></td>
</tr>
</table>