[jQuery] Re: jquery(this) and has:ul selector.

2009-06-27 Thread Karl Swedberg
Try this: if ( $('ul', this).length ) { // do something if this li has a descendant ul } --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2009, at 8:31 AM, zayatzz wrote: Hello I have function like this: $("ul.lavaLamp li:has ul").hoverIntent

[jQuery] Re: jquery(this) and has:ul selector.

2009-06-27 Thread zayatzz
Thanks... but i actually chose somewhat different approach : and it works too: function movehere(el){ /* This bit is for moving the background of first ul - the lavalamp */ var w = $(el).width(); var pos = $(el).position(); var lleft = pos.

[jQuery] Re: jquery(this) and has:ul selector.

2009-06-27 Thread zayatzz
Perhaps i should explain what im trying to achieve. What i want is menu where 1st menu has lavalamp background and some of the menu items have submenues that slide open. If i use ganesh's lavalamp and submenues together then lavalamp catches events on 1st level and prevents second level from ope