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

Recommended Answers

All 2 Replies

Member Avatar for stbuchok

Something like this (haven't tested);

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.