Javascript : this

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") ?

1 réponse

Nicolas
 
Bon j'ai trouvé solo en fait, la solution :
jQuery(this).children(".btn").show();
0