samedi 29 avril 2017

Have checkbox be checked with delay

I have a simple question: How can you have a checkbox be checked automatically (as already shown in the code snippet), but with a delay of 100ms? So that when you load the page, after 100ms the checkbox gets checked (and will stay checked). I think you need JavaScript for it, but I don't know how to do it.

<input checked type="checkbox"/>

Any ideas for a clean and good way to achieve this?




Aucun commentaire:

Enregistrer un commentaire