title image


Smiley Re: Anfängerfrage: Per Click alle Checkboxen einer Tabell aktivieren!
Hallo daphne,



meinst du was in dieser art?















function checkAll(the_name, do_check){

var all_checkboxes = document.getElementsByName(the_name);

var nr_of_boxes = all_checkboxes.length;

for(var i = 0; i < nr_of_boxes; i ++){

document.getElementsByName(the_name)[i].checked = do_check;

}

}



function ctrlAllBox(all_box_prefix, own_state){

if(!own_state){

var usename = all_box_prefix + "_chk_all";

document.getElementsByName(usename)[0].checked = false;

}

}

















Tabelle 1









chk1







chk2









chk3







all











Tabelle 2:







chk1







chk2









chk3







all













Tabelle 3:







chk1









chk2







chk3









all

















probiers mal aus und pass es ggf. an.



fester_franz

Grüße,
fester_franz Z6

RSV Arloff Kirspenich


geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: