Marty_McFly a écrit :
Hello ! la fonction getElementsByName('checkbox') renvoit une collection d'objet dont le 'name' est checkbox, pas le type. Pour obtenir une collection d'objet dont le TYPE est checkbox, il me semble que c'est getElementsByTagName('checkbox')
|
Non, ça ça renvoie tous les éléments <checkbox/>, qui n'existent pas en HTML 
Il faut faire un getElementsByTagName('input') et ensuite vérifier manuellement leur type (getAttribute('type') == 'checkbox', un truc du style)
Message édité par masklinn le 05-09-2008 à 17:07:15
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?