Question: how to get multiple checkbox value in javascript with getelementsbyname?
Answer: document. getElementById('select'). onclick = function() { var checkboxes = document. getElementsByName('vechicle'); for (var checkbox of checkboxes) { if (checkbox. checked) document. body. append(checkbox. value + ' ');