MrGuillou,
il y a 14 ans
Bonjour,
Si le span n'est pas là pour le coté visuel, il y en a pas besoin. Il faut juste que tu récupère ton id
jQuery(document).ready(function($){
$('#menu li').mouseover(function(){
var id = $(this).find(".menuActive").attr('id').substring(10);
alert(id);
});
});
si tu veux quand même garder ton span
jQuery(document).ready(function($){
$('#menu li').mouseover(function(){
var content = $(this).find(".menuActive span").html();
alert(content);
});
});
PS : Je ne sais pas si tu as vu, mais dans le header de ton code, il y a quelques information sur toi.