vendredi 30 mars 2018

How to create a checkbox radio with JS only and a function to uncheck all boxes?

I want to create a checkbox radio like this: 1 div that contains 3 labels and their radio inputs. But, I want to create these HTML elements with JS only.

I tried this and I don't think my .checkboxradio(); worked when I did it.

I also have a button with an onclick function where I want to make all inputs unchecked, and for the whole radio to be refreshed. I couldn't figure this part out.

Help?




Aucun commentaire:

Enregistrer un commentaire