Jquery - Xième élément html ?
Résolu/Fermé
jemsss
Messages postés
188
Date d'inscription
jeudi 28 août 2008
Statut
Membre
Dernière intervention
28 novembre 2019
-
25 août 2013 à 15:56
jemsss Messages postés 188 Date d'inscription jeudi 28 août 2008 Statut Membre Dernière intervention 28 novembre 2019 - 25 août 2013 à 16:17
jemsss Messages postés 188 Date d'inscription jeudi 28 août 2008 Statut Membre Dernière intervention 28 novembre 2019 - 25 août 2013 à 16:17
A voir également:
- Jquery - Xième élément html ?
- Editeur html - Télécharger - HTML
- Impossible de copier car cet élément est trop volumineux pour le format du volume - Forum MacOS
- Inspecter l'élément android - Forum Wiko
- Open element - Télécharger - HTML
- Espace html ✓ - Forum HTML
2 réponses
noerubiks
Messages postés
159
Date d'inscription
lundi 22 août 2011
Statut
Membre
Dernière intervention
28 août 2016
37
25 août 2013 à 15:58
25 août 2013 à 15:58
Bonjour, vous pouvez essayer avec var num = $(this).nth-child();
:)
:)
jemsss
Messages postés
188
Date d'inscription
jeudi 28 août 2008
Statut
Membre
Dernière intervention
28 novembre 2019
17
25 août 2013 à 16:17
25 août 2013 à 16:17
ça ne marche pas mais merci car tu m'as mis sur la piste.
"jquery get nth-child" sur Google m'a permis d'avoir la réponse que voici :
var num = $(this).index() + 1;
"jquery get nth-child" sur Google m'a permis d'avoir la réponse que voici :
var num = $(this).index() + 1;