0

hi i have an outer div which contains alot of inner divs like this '<div id="wrapper"> <div id ="1" class="hoverme">sometext</div></div> so what i nedd to do is that i need to detect the on hover stat of ever hoverme class in tthe wrapper div and return the id number of the hovered elemnt
Thank you

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by shandoosheri
1

Something like this (haven't tested);

$('.hoverme').on('mouseover', function(){
    alert($(this).attr('id'));
});
0

thank you man it helped me alot and it does exactly as i wanted. thank you again

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.