vendredi 18 septembre 2015

Need to clear local storage using a checkbox

I understand local storage is cleared using:

localStorage.clear();

How would you use this with a checkbox? Let's say you have a checkbox:

<input type="checkbox" id="all" value="" name="all"> Remove All

I'd prefer if it's done using javascript (instead of jquery).

Thanks!




Aucun commentaire:

Enregistrer un commentaire