Question: how to get checked checkbox value in javascript by name?
Answer: document. getElementById('select'). onclick = function() { var checkboxes = document. querySelectorAll('input[name="vechicle"]:checked'); for (var checkbox of checkboxes) { document. body. append(checkbox. value + ' ');