mardi 26 juillet 2016

Display different checkboxes based on time of day

Hi all just wondering if its possible to display different checkboxes based on the current time. I'm building a medication reminder application, so the application will display different medication the user should take based on the current time. So for example at 1pm the checkboxes might displayed "medication A", "medication C". And at 9pm the checkbox might display "medication B".

This is what I have at the moment, but as you can see it will display the same checkboxes regardless of what the current time is.

<form>
<input type="checkbox" name="Med A" value="A">Medication A<br>
<input type="checkbox" name="Med B" value="B">Medication B<br>
<input type="checkbox" name="Med C" value="C">Medication C<br>
<input id=xbutton type="button" onClick="validate()" value="Submit">
</form>




Aucun commentaire:

Enregistrer un commentaire