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
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.
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
3 matches
Mail list logo