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 - Télécharger - Langages
- A javascript error occurred in the main process - Forum Handicap / Accessibilté
- Afficher un tableau javascript en html ✓ - Forum Javascript
- Javascript arrondi - Forum Javascript
- Javascript arrondi après la virgule ✓ - Forum Windows