1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$(document).ready(function() { $("input[type=\"checkbox\"]").hide(); }); window.isChecked = true; function checkedAll(isChecked) { window.isChecked = !window.isChecked ; var c = document.getElementsByTagName('input'); for (var i = 0; i < c.length; i++){ if (c[i].type == 'checkbox'){ c[i].checked = isChecked; } } }