kes.rajesh Posted September 27, 2010 Report Posted September 27, 2010 I am trying to get the width of anchor tag. this anchor is in the li element just like <ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> and i am using li mouseover event so how i get the width of particular anchor when hovering on li element. In simple words i am trying to get the width of anchor on which i hover. but i using li mouseover event. please anyone help me. it urgent. Quote
BeeDev Posted September 27, 2010 Report Posted September 27, 2010 $("ul li").mouseover(function(){ alert($(this).find("a").width()); }); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.