| |||||
| Bas de page | |
|---|---|
| Auteur | Sujet : masquer une checkbox à partir d'un radioButton |
Publicité | Posté le 05-03-2008 à 10:16:47 ![]() ![]() |
babasss | Dans tous les bons navigateurs (dans Firefox en tout cas), il existe une console d'erreurs qui t'indique les erreurs de javascript...
--------------- Feedback : http://forum.hardware.fr/hfr/Achat [...] 2666_1.htm |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
titi04 |
|
titi04 | getElementsByName retourne un tableau d'éléments comme l'a suggéré anapajari. Donc, je parcours mon tableau dans la fonction. |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
Publicité | Posté le 06-03-2008 à 10:16:03 ![]() ![]() |
titi04 | Je ne pourrais pas avoir un peu plus d'aide de ta part car pour le moment je bloque. J'ai bien cherché ce que faisais getElementsByName mais je ne vois pas ce que tu veux dire. |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
anapajari s/travail/glanding on hfr/gs; | Masklinn, il utilise getElementsByName ( http://developer.mozilla.org/en/do [...] entsByName ) et pas getElementsByTagName. Message cité 1 fois Message édité par anapajari le 06-03-2008 à 10:35:54 --------------- Software and cathedrals are much the same - first we build them, then we pray. |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
babasss | D'abord, il faut que tu apprennes à récupérer les valeurs de ta liste déroulante et savoir quels radiobuttons est cochés.
Et tu sauras comment récupérer les valeurs de tes boutons, listes...
--------------- Feedback : http://forum.hardware.fr/hfr/Achat [...] 2666_1.htm |
anapajari s/travail/glanding on hfr/gs; | badass> quand tu sauras lire un topic, tu pourra te permettre ce genre de post titi04>tu as juste une erreur dans ton code. Les "radios" n'ont pas de propriété selected mais une propriété checked, donc remplace:
Bon maintenant, reste que ta fonction est vraiment pas top Message cité 2 fois Message édité par anapajari le 06-03-2008 à 12:08:24 --------------- Software and cathedrals are much the same - first we build them, then we pray. |
masklinn í dag viðrar vel til loftárása |
et accessoirement, la valeur renvoyée par .checked n'est pas nécessairement "true" (et c'est pas censé être true en fait" ), ça marchera que sous IE Message cité 1 fois Message édité par masklinn le 06-03-2008 à 13:00:39 --------------- 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? |
babasss |
[HS]
--------------- Feedback : http://forum.hardware.fr/hfr/Achat [...] 2666_1.htm |
anapajari s/travail/glanding on hfr/gs; |
la mienne était également sans animosité
--------------- Software and cathedrals are much the same - first we build them, then we pray. |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
titi04 | ok.
|
Publicité | Posté le ![]() ![]() |






