Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3019 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Comment desactvier ou plutot griser un radiogroup ??

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Comment desactvier ou plutot griser un radiogroup ??

n°1060022
michou357
Posté le 25-04-2005 à 16:36:34  profilanswer
 

Je suis deja parvenu à gérer quelques événement OnClick en javascript mais la je vois pas trop comment faire pour griser un radiogroup.  
En fait quand le client va choisir une option dans un radiogroup donné, j'aimerais bien que si il fait un certain choix (l'option immediat) que un autre radio group soit désactivé ou grisé(le radiogroup_scheduler).  
 
 
<div class=\"radiogroup_unique\">  
   <form name=\"radiogroup\" method=\"post\" action=\" $PHP_SELF \"  >  
      <input type=\"radio\" name=\"instant\" value=\"immediat\" checked=\"true\"/> Immediat <br>  
        <input type=\"radio\" name=\"instant\" value=\"differe\"  /> Differe  
   </form>  
</div>  
 
<div class=\"radiogroup_scheduler\">  
<form name=\"radiogroup\" method=\"post\" action=\" $PHP_SELF \"  >  
  <input type=\"radio\" name=\"date\" value=\"D\" checked=\"true\" /> Daily <br>  
  <input type=\"radio\" name=\"date\" value=\"W\"  /> Weekly <br>  
  <input type=\"radio\" name=\"date\" value=\"M\"  /> Monthly <br>  
  <input type=\"radio\" name=\"date\" value=\"W\"  /> Yearly  
</form>  
</div>

mood
Publicité
Posté le 25-04-2005 à 16:36:34  profilanswer
 

n°1060292
FlorentG
Posté le 25-04-2005 à 19:49:00  profilanswer
 

En mettant la propriété enabled à false je crois bien :)

n°1060293
FlorentG
Posté le 25-04-2005 à 19:49:12  profilanswer
 

Ou disabled à true :heink:, à tester :D

n°1060294
FlorentG
Posté le 25-04-2005 à 19:49:26  profilanswer
 

Ou encore disabled sur "disabled" :??:

n°1060405
KangOl
Profil : pointeur
Posté le 25-04-2005 à 20:49:18  profilanswer
 

faudrait deja mettre des noms différents a tes form...


---------------
Nos estans firs di nosse pitite patreye...
n°1060420
masklinn
í dag viðrar vel til loftárása
Posté le 25-04-2005 à 21:00:20  profilanswer
 

c'est disabled à disabled :D
 
http://www.w3.org/TR/html401/inter [...] tml#h-17.4


---------------
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?
n°1060427
FlorentG
Posté le 25-04-2005 à 21:03:12  profilanswer
 

Ouais en HTML... Mais en DOM :cry:

n°1060433
masklinn
í dag viðrar vel til loftárása
Posté le 25-04-2005 à 21:06:22  profilanswer
 

ben s'pareil [:spamafote]
 
my_element.setAttribute('disabled','disabled')
[:spamafote]


---------------
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?
n°1060437
FlorentG
Posté le 25-04-2005 à 21:08:19  profilanswer
 

Sauf qu'en DOM2, ils disent :

Citation :

disabled of type boolean
    The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.


donc de type boolean :??:

n°1060804
michou357
Posté le 26-04-2005 à 08:00:11  profilanswer
 

Merci les chouchou en fait c'est bien en mettant disabled à true mais je me suis gourré dans le nom de mon formulaire c'est pour ça que ça marchait pas.
Et merci pour cette adrese c'est ce dont je cherchais:
 
http://www.w3.org/TR/html401/inter [...] tml#h-17.4


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Comment desactvier ou plutot griser un radiogroup ??

 

Sujets relatifs
comment griserApi Win32 : je n'arrive pas à griser une option de menu
[Javascript] Input File - Griser le textfield / Test sur le fichierMenu contextuel (griser un élément du menu déroulant)
griser la croix de la fenetre en java[JS] griser un champ 'text' en fonction d'un champ 'select'
Commenter griser/dégriser un bouton de Formulaire ?Griser 2 champs d'un formulaire par rapport au choix dans une liste :o
Griser un <input type="radio">....Griser un/des champs en fonction d'une liste de choix.
Plus de sujets relatifs à : Comment desactvier ou plutot griser un radiogroup ??


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)