/ Published in: jQuery

Chequea todos los checkbox con un mismo nombre desde uno aparte que tiene como ID "checkeverythink_btn"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function checkTodos(){ if($("#checkeverythink_btn").is(":checked")){ $(":checkbox").each( function() { $(this).attr('checked', true); }); }else{ $(":checkbox").each( function() { $(this).attr('checked', false); }); } }
Comments
