> $("#a2").click(function(event) {
> $(jQuery.sibling(this).prev).css("border","solid 1px red");
> $("UL", jQuery.sibling(this).next).css("border","solid 1px red");
> });
I don't recommend doing it that way - you're accessing private,
internal jQuery functions which will have strange results. Try this
instead:
$("#a2").click(function() {
$(this).prev().css("border","solid 1px red");
$(this).next().find("ul").css("border","solid 1px red");
});
--John
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/