[jQuery] How do I select the previous and next sibling of a
I hope this post ends up in the right place. I have not got the hang
of that yet.
Better yet this works and a lot shorter
$("#a2").click(function(event) {
$(jQuery.sibling(this).prev).css("border","solid 1px red");
$("UL", jQuery.sibling(this).next).css("border","solid 1px red");
});
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/