Use .length() For example: var length = $('#something ul li').length();
On Jul 11, 9:25 pm, galilee99 <he...@nickjacobs.net.nz> wrote: > Hi, any tips on how to count the number of li's?? > > On Jul 8, 11:51 am, Charlie <charlie...@gmail.com> wrote: > > > you can use onBeforeShow to insert function to calculate offset for css. > > Number of li's x height of li etc > > Use "(this)" to refer to ul about to open and apply css to it > > galilee99 wrote:Hi, I'm trying to setup a vertical menu where the submenus > > align to the top of the parent ul rather than the parent li. as in this > > image:http://nickjacobs.net.nz/tmp/superfish.pngbutnot sure where to > > start?? any help appreciated.