Create a form select with a range of years automatically with PHP. [php] <select> <?php foreach(range(2008, (int)date("Y")) as $year) { echo "\t<option value=’".$year."’>".$year."</option>\n"; } ?> </select> [/php] The above code will output the following: <select> <option value=’2008′>2008</option> <option value=’2009′>2009</option> <option value=’2010′>2010</option> <option value=’2011′>2011</option> <option value=’2012′>2012</option> <option value=’2013′>2013</option> <option value=’2014′>2014</option> <option …
Show/Hide DIV With Checkbox Select
The following code will enable you to display a DIV with text when a checkbox is selected. HTML jQuery View/Test on jsFiddle