Message from JavaScript discussions

May 2019

— You probably want FormData API

— 

const myForm = document.querySelector('#form');
const fd = new FormData(myForm);
for (const [ key, value ] of fd) {
console.log(key, value);
}

— Try this

— Should log every checked box

— Let me try

— Nothing shows

— Are you running this code before checking any boxes?

— No

— 😐

— Make a jsfiddle / codepen

— What's that

— Jsfiddle.net / codepen.com