Manuel · @elmanu
23 followers · 66 posts · Server digitalcourage.social

Learnings: #01. If you have an HTML form with the name contact. And optionally a list of checkbox fields with the name select. If there is one checkbox, you can address it with document.forms.contact.select. If there is more than one checkbox you can iterate document.forms.contact.select.forEach((select) => select.checked); To distinguish you can check: 'length' in document.forms.contact.select

#vanillajs #jsdom #js #html #learnings

Last updated 1 year ago