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

JavaScript Discussion :

les check listes


Sujet :

JavaScript

  1. #1
    Membre à l'essai
    Inscrit en
    Mai 2010
    Messages
    23
    Détails du profil
    Informations forums :
    Inscription : Mai 2010
    Messages : 23
    Points : 10
    Points
    10
    Par défaut les check listes
    Bonjour,

    Voila, je veux remplir un tableau qui contient les Noms des id checked du check-liste en javascript ou en jquery, puis utiliser ce tableau pour afficher les Noms des id checked dans une autre page html!

    les différents blocs de la page index27.html sont en visibility:hidden; donc je veux remplir un tableau pour que je puisse mettre ces blocs en visibility: visible;

    merci pour votre aide.
    Code : 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
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="global.css" media="all" />
    <link rel="stylesheet" type="text/css" href="exemple.css" media="all" />
    <!--<link rel="stylesheet" href="screensmall.css" type="text/css" media="screen">-->
    <script language="javascript" type="text/javascript" src="action.js"></script>
    <script type="text/javascript" src="mootools2.js"></script>
    <script type="text/javascript" src="moocheck2.js"></script>
     
     
     
    <title></title>
    </head>
    <body onload="javascript:fillInitialDestList();">
    <div class="font">
    <form method="post" name=playlist>
    	<div class="nav_champs"></div>
    	<div class="nav_top">
    			<div id="nav_right1">
    			<input type="submit" id="bouton1" class="submit5" value="Valider" onClick="validation(this.form,'bouton1','bouton1')"></div>
    			<div id="nav_center1"><a>TXT</a></div>
    			<div id="nav_center_5"><a href="index.html"  style="color: rgb(255, 255, 255); text-decoration: none;">TEST</a></div>
    			<div id="nav_left"><a href="index1.html"  style="color: transparent;"><img alt="" src="image/etoile.png"></a></div>
    	</div>
    <div class="cont_geolocalisation1">
     
    		<div id="categorie11"><div style="float: left;"><a style="margin-left: 10px;float: left;"><img alt="" src="image/img21.png"></a></div><div style="margin-left: 20px;float: left;margin-top: 10px;"><a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">A</a></div><label><input type="checkbox" id="bouton1" name=ckbox onClick="anyCheck2(this.form,'bouton1','bouton1')"></label></div>
    		<div id="categorie11"><div style="float: left;"><a style="margin-left: 10px;float: left;"><img alt="" src="image/img22.png"></a></div><div style="margin-left: 20px;float: left;margin-top: 10px;"><a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">B</a></div><label><input type="checkbox" id="bouton2" name=ckbox onClick="anyCheck2(this.form,'bouton1','bouton2')"></label></div>
    		<div id="categorie11"><div style="float: left;"><a style="margin-left: 10px;float: left;"><img alt="" src="image/img23.png"></a></div><div style="margin-left: 20px;float: left;margin-top: 10px;"><a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">C</a></div><label><input type="checkbox" id="bouton3" name=ckbox onClick="anyCheck2(this.form,'bouton1','bouton3')"></label></div>
    		<div id="categorie11"><div style="float: left;"><a style="margin-left: 10px;float: left;"><img alt="" src="image/img24.png"></a></div><div style="margin-left: 20px;float: left;margin-top: 10px;"><a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">D</a></div><label><input type="checkbox" id="bouton4" name=ckbox onClick="anyCheck2(this.form,'bouton1','bouton4')"></label></div>
    		abel></div>
     
     
    		</div>
    				</form>
     
     
    </div>
     
    </body>
    </html>
    Code : 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
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="global.css" media="all" />
    <!--<link rel="stylesheet" href="screensmall.css" type="text/css" media="screen">-->
    <script language="javascript" type="text/javascript" src="action.js"></script>
    <script type="text/javascript" src="mootools2.js"></script>
    <script type="text/javascript" src="moocheck2.js"></script>
    <title>p</title>
    </head>
    <body>
    <div class="font">
    <form method="post" name=playlist>
    	<div class="nav_champs"></div>
    	<div class="nav_top">
    			<div id="nav_right"><img alt="" src="image/bouton_rechercher.png"></div>
    			<div id="nav_center"><a>TEST</a></div>
    			<div id="nav_center_5"><a href="index.html"  style="color: rgb(255, 255, 255); text-decoration: none;">TXT</a></div>
    			<div id="nav_left"><a href="index1.html"  style="color: transparent;"><img alt="" src="image/etoile.png"></a></div>
    	</div>
    	<div class="nav_localisation">
     
    	</div>
    <div class="cont_geolocalisation1">
    		<div id="block1">
    		<div id="categorie13">
    		<div style="float: left;">
    		<a style="margin-left: 10px;float: left;"><img alt="" src="image/img21.png"></a></div>
    		<div style="margin-left: 20px;float: left;margin-top: 10px;">
    		<a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">A</a>
    		</div>
    		</div>
    		</div>
     
     
    <!--*****************************************************************************************		-->
    <div id="block2">
    <div id="categorie13">
    		<div style="float: left;">
    		<a style="margin-left: 10px;float: left;"><img alt="" src="image/img22.png"></a></div>
    		<div style="margin-left: 20px;float: left;margin-top: 10px;">
    		<a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">B</a>
    		</div>
    		</div>
     
     
    		</div>
     
     
    <!--*****************************************************************************************		-->
    <div id="block3">
    <div id="categorie13">
    		<div style="float: left;">
    		<a style="margin-left: 10px;float: left;"><img alt="" src="image/img23.png"></a></div>
    		<div style="margin-left: 20px;float: left;margin-top: 10px;">
    		<a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">C</a>
    		</div>
    		</div>
    		</div>
     
    <!--*****************************************************************************************		-->
    <div id="block4">
    <div id="categorie13">
    		<div style="float: left;">
    		<a style="margin-left: 10px;float: left;"><img alt="" src="image/img24.png"></a></div>
    		<div style="margin-left: 20px;float: left;margin-top: 10px;">
    		<a style="color:#ffffff;font-family: arial;font-size: 13px;font-weight: bold; ">D</a>
    		</div>
    		</div>
     
    </div>
    <!--*****************************************************************************************		-->
     
     
     
     
     
     
    		</div>
     
    				</form>
     
    </div>
    </body>
    </html>
    Fichiers attachés Fichiers attachés

  2. #2
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Bonjour et bienvenue sur Developpez.com

    Je crains qu'il ne faille détailler un petit peu plus la question et son contexte

    Par exemple en utilisant des termes qui puisent être compris de tous sans ambiguïté, contrairement à
    un tableau qui contient les id checked du check-liste


    Il faudrait aussi nous montrer ton code existant, histoire de pouvoir situer le problème.

    A+

  3. #3
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    Poster le code serait mieux que de balancer une pièce jointe sauvagement (en plus du .rar, pour ne rien arranger...), il vaudrait mieux poster ton code sur le forum .

    Pour le faire, tu copies ton code, tu le colles sur le forum. Ensuite tu sélectionnes ton code, et tu cliques sur le bouton "#" de l'éditeur

  4. #4
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    +1 la bête à corne

    @ walidos21 : beaucoup n'ouvrent pas les .rar ou .zip
    Et ça permet aussi d'isoler la partie du code concernée ...

    A+

Discussions similaires

  1. les check listes
    Par walidos21 dans le forum jQuery
    Réponses: 1
    Dernier message: 11/06/2010, 15h45
  2. Probleme avec les double Liste chainees
    Par BernardT dans le forum Langage
    Réponses: 1
    Dernier message: 12/07/2005, 17h22
  3. Probleme avec les cmd LIST ou NLST
    Par enox dans le forum Développement
    Réponses: 4
    Dernier message: 16/05/2005, 01h47
  4. cocher tout les check box
    Par Flob dans le forum Balisage (X)HTML et validation W3C
    Réponses: 5
    Dernier message: 17/02/2005, 10h29
  5. Limiter les 30dernière liste de données?
    Par SkyDev dans le forum Langage SQL
    Réponses: 11
    Dernier message: 08/03/2004, 17h01

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