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