I want to use javascript to populate a list using the <select> and <option> with a for loop.
Example:
For(val time=7:00; time<=8:00; time=time+:15)
{
}
Thus is would produce the result below
<select>
<option value ="time1">7:00</option>
<<option value ="time2">7:15</option>
<option value ="time3">7:30</option>
option value ="time4">7:45</option>
option value ="time5">8:00</option>
</select>
looking for some ideas or an example
Example:
For(val time=7:00; time<=8:00; time=time+:15)
{
}
Thus is would produce the result below
<select>
<option value ="time1">7:00</option>
<<option value ="time2">7:15</option>
<option value ="time3">7:30</option>
option value ="time4">7:45</option>
option value ="time5">8:00</option>
</select>
looking for some ideas or an example