Is it possible to, somehow, select a direct child of $(this)?
I have:
var obj = $(this);
$(\"ul\", obj).css(\'width\',s*w);
And need
The jQuery constructor can take a second parameter which can is used to override the context of the selection.
$("ul", this);
And if you just want the first I think you could do
$("ul:first", this)
This works for me ;)
$('> ul',this)
this may work too (depends on what exact situation are you in maybe)
$(this).find('>*:eq(0)')
$(this).children('ul')
returns a list of direct children.
Try the following:
$(this).find("> ul")