[jQuery] href = $("#pre, #next").attr("href"), then how can i return $("#pre")'s href ?

[jQuery] href = $("#pre, #next").attr("href"), then how can i return $("#pre")'s href ?

hi, all.
i wrote some code like this:
....
var href = $("#pre, #next").attr("href")<br clear="all">....
then how can return  $("#pre")'s href ? or $("#next")'s href ? this only an exsample, i know i can deal them separately, but i want to know how to deal them when with lots of elements.
thanks in advance.
--
<a href="http://realazy.org">realazy.org</a>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/