1$(document).ready(function() {
2 $('#submit').click(function() {
3 var list = ['Car', 'Bike', 'Scooter'];
4 for (var value of list) {
5 $('#container')
6 .append(`<input type="checkbox" id="${value}" name="interest" value="${value}">`)
7 .append(`<label for="${value}">${value}</label></div>`)
8 .append(`<br>`);
9 }
10 })
11});
12