this is for a test, am not sure what they mean by “do not hard-code the resulting quarter years in the javascript”:
<select id=“ddQuarters”>
<option value=“1/2010”>January 2010</option>
<option value=“3/2010”>March 2010</option>
<option value=“5/2010”>May 2010</option>
<option value=“7/2010”>July 2010</option>
<!-- etc –>
</select>
instructions:
When a user selects a date from the investment cycle drop-down box, the subsequent investment values must display the next three fiscal quarters. (e.g. for “January 2010”, the subsequent quarters will be Q2 2010, Q3 2010, Q4 2010; for “June 2010”, the subsequent quarters will be Q3 2010, Q4 2010, Q1 2011.)
Do not hard-code the resulting quarter years in the javascript. (empahsis mine…
The subsequent quarters should be presented with checkboxes which are all unchecked.
checkboxes in markup:
<input id="checkbox1" type="checkbox" value="" /><label class="chkbx" for="checkbox1"></label><br />
<input id="checkbox2" type="checkbox" value="" /><label class="chkbx" for="checkbox2"></label><br />
<input id="checkbox3" type="checkbox" value="" /><label class="chkbx" for="checkbox3"></label>
the values to populate the checkboxes (value and label) have to be hardcoded somewhere, no? what am I missing???
thank you…