Response title
This is preview!
$(':checkbox[name=items]').on('change', function() {
var arr = $(':checkbox[name=items]:checked').map(function() {
return this.id;
})
.get();
$("#p-tap").on("click", function(){
console.log(arr);
});
<div class="container">
<input type="checkbox" name="items" value="Item_1" /> Lower Development Cost <br />
<input type="checkbox" name="items" value="Item_2" /> Higher Energy Production<br />
<input type="checkbox" name="items" value="Item_3" /> Further From Human Populations<br />
<input type="checkbox" name="items" value="Item_3" /> Smaller Construction Footprint<br />
</div>
<button id="p-tap"> Print</button>
© 2013 jQuery Foundation
Sponsored by and others.