inserisci l'evento onclick sulla checkbox chiave
poi metti questa funzione nell'headercodice:<input type="checkbox" onclick="checkall()">
Non l'ho provata... a te il compito di testarla.codice:<script type="text/javascript"> function checkall() { inputtag = document.getElementsByTagName('input').length(); for (i=0; i<inputtag; i++) { thisinput = document.getElementsByTagName('input')[i]; if (thisinput.getAttribute('type') == 'checkbox') { thisinput.checked = true; } } } <script>
![]()