I have a list with links I use with tabs. It looks like this:
First tab
$("li.active").next();
and
$("li.active").prev();