jquery outerwidth submenu items

Posted by Epco on Stack Overflow See other posts from Stack Overflow or by Epco
Published on 2010-06-03T19:16:54Z Indexed on 2010/06/03 19:24 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

i'm looking for a way to calculate the total width of de level 2 items and put it in the ul. I have looked at some jquery thinks like outerWidth and .lengt but can't figure it out.

thanks in advance

    $('#menu li:has(ul)  ul').each(function()

<ul>
 <li>level 1</li>
 <li>
  <ul style="widht:??;">
   <li>level 2</li>
   <li>level 2</li>
  </ul>
 </li>
 <li>level 1</li>
</ul>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about count