<script src="/js/2.1.1jquery.min.js"></script>
</head>
<body><input type="checkbox" id="myCheckbox"value="2133">
<input type="checkbox" id="myCheckbox2" value="5">5
<input type="checkbox" id="myCheckbox3" value="666">666
<button onclick="getCheckedValues()">Get Checked Values</button>
<script>
$('input').bind('input propertychange', function() {
var inputs = document.querySelectorAll('input[type="checkbox"]');
var checkedValues = [];
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].checked) {
checkedValues.push(inputs[i].value);
}
}
console.log(checkedValues);
})
</script>