Javascript : this
Nicolas
-
Nicolas -
Nicolas -
Bonjour,
je rencontre un petit problème tout bête, je souhaite récupéré la class d'un bouton au survol de la DIV qui la contient, en gros je veux faire ça :
$(document).ready(function(){
$(".ma_div").hover(
function (){
$(this".btn").show();
},
function (){
$(this+".btn").hide();
}
);
});
mais ça ne marche pas, alors comment écrire $(this".btn") ?
je rencontre un petit problème tout bête, je souhaite récupéré la class d'un bouton au survol de la DIV qui la contient, en gros je veux faire ça :
$(document).ready(function(){
$(".ma_div").hover(
function (){
$(this".btn").show();
},
function (){
$(this+".btn").hide();
}
);
});
mais ça ne marche pas, alors comment écrire $(this".btn") ?
A voir également:
- Javascript : this
- Telecharger javascript pour pc - Télécharger - Langages
- A javascript error occurred in the main process français - Forum Windows
- Javascript arrondi ✓ - Forum Windows
- Javascript arrondir à 2 décimales - Forum Webmastering
- Javascript void 0 c'est quoi ✓ - Forum Réseaux sociaux