Hello,
I want to know if there is a option that can tell you which element is selected of all the elements. My english isn't that great so let's get to the point:
If I hover the second .menuTd I want it to give me a number 2, if I hover over the third .menuTd I want a number 3. So I can load these other pages in.HTML Code:<td> <a class="menuTd" href="">Tech tutorials</a> </td> <td> <a class="menuTd" href="">All kinds of tutorails</a> </td> <td> <a class="menuTd" href="">About</a> </td> var i = $(".menuTd").length; $("a.menuTd").hover( function () { $("#underMenu").load("javascript/submenu/submenu" + i + ".html"); $("#underMenu").css("visibility","visible"); }, function () { $("#underMenu").css("visibility","hidden"); } );
Thanks!
gives me the number 3 because there are 3 .menuTd, but I want it to give me the number that is hover.HTML Code:var i = $(".menuTd").length;
sorry for the bad description


Reply With Quote
Bookmarks