IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en page CSS Discussion :

Bouton radio et attribut CHECKED


Sujet :

CSS

  1. #1
    Membre habitué Avatar de labarre2002
    Homme Profil pro
    Inscrit en
    Avril 2008
    Messages
    224
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Autre

    Informations professionnelles :
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Avril 2008
    Messages : 224
    Points : 131
    Points
    131
    Par défaut Bouton radio et attribut CHECKED
    Bonjour

    je réalise un quizz
    le soucis est que tous les boutons peuvent être sélectionnés


    Par défaut

    Nom : a.jpg
Affichages : 63
Taille : 85,9 Ko

    puis :

    Nom : b.jpg
Affichages : 61
Taille : 88,4 Ko


    mon code :

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
                           <div class="question">
                                   <h1 class="premiere">
                                             Qu'est ce qu 'un pointeur ?
                                  </h1>
                                       <div class="choix">
                                            <svg fill="green" height="200px" width="200px" version="1.1" id="vrai" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 236.988 236.988" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <polygon points="198.098,24.326 87.543,134.881 38.891,86.229 0,125.121 87.543,212.662 236.988,63.217 "></polygon> </g></svg>
                                            <input type="radio" id="two" checked/>
                                            <label for="two"> Il s'agit tout simplement  d'une adresse en mémoire.</label>
                                       </div>
     
     
                                               <div class="choix">
                                                         <svg fill="red" height="200px" width="200px" version="1.1" id="faux" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 208.891 208.891" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M0,170l65.555-65.555L0,38.891L38.891,0l65.555,65.555L170,0l38.891,38.891l-65.555,65.555L208.891,170L170,208.891 l-65.555-65.555l-65.555,65.555L0,170z"></path> </g></svg> 
                                                         <input type="radio" id="two2" />
                                                         <label for="two2"> Un concet introduit par la librairie <stdlib.h>.</label>
                                               </div>
     
                                                          <div class="choix">
                                                                <svg fill="red" height="200px" width="200px" version="1.1" id="faux" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 208.891 208.891" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M0,170l65.555-65.555L0,38.891L38.891,0l65.555,65.555L170,0l38.891,38.891l-65.555,65.555L208.891,170L170,208.891 l-65.555-65.555l-65.555,65.555L0,170z"></path> </g></svg>
                                                                <input type="radio" id="two3" />
                                                                <label for="two3"> Un concept introduit par la librairie <string.h>. </label>
                                                          </div>
                             </div>

    Comment procéder pour n ' avoir qu ' un bouton sélectionnable ?
    Merci .
    « Je ne perds jamais, soit je gagne, soit j'apprends. »
    Nelson Mandela

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    16 963
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 963
    Points : 44 141
    Points
    44 141
    Par défaut
    Bonjour,
    Comment procéder pour n ' avoir qu ' un bouton sélectionnable ?
    Lire la documentation et surtout ce qui concerne l'attribut name
    Ressource :

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Input radio et attribut checked pas pris en compte
    Par yann0807 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 06/10/2009, 16h45
  2. Changer la couleur d'un bouton radio checké
    Par 123quatre dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 02/07/2009, 22h01
  3. modifier attribut checked bouton radio
    Par calitom dans le forum Général JavaScript
    Réponses: 18
    Dernier message: 27/11/2006, 21h15
  4. Déterminer le bouton radio checked
    Par cyberdevelopment dans le forum Langage
    Réponses: 8
    Dernier message: 25/07/2006, 16h36
  5. probleme bouton radio checked
    Par coachbob44 dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 06/04/2005, 10h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo