javascript for creating link url from elements w/o specific IDs
<p>In a CMS that returns a list of results from a search, I have a list of items that looks something like this: </p>

<pre><code>&lt;ul class="results_odd_row"&gt;
  &lt;li class=title&gt; Title &lt;/li&gt;
  &lt;li class=published&gt; Year &lt;/li&gt;
  &lt;li class="author"&gt; Author &lt;/li&gt;
  &lt;li class="avail"&gt; Out; try &lt;a href="http://another.search"&gt;Another Search&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class="results_even_row"&gt;... &lt;/ul&gt;
&lt;ul class="results_odd_row"&gt;... &lt;/ul&gt;
...etc...
</code></pre>

<p>For the "try another search" link, I'd like to append onto the url some information about the record, like "http://another.search?title=[title]&amp;author=[author]", so that information can be used to execute the other search. </p>

<p>How can I identify elements that have no specific ID, and where there are multiple elements of the same class on the same page? In pseudo code, what I want might be something like: </p>

<pre><code> 1. href = base URL (http://another.search) plus
 2. the text from the first &lt;li&gt; element above with class="title"
 3. the text from the first &lt;li&gt; element above with class="author"
</code></pre>

<p>Also, I'm limited by the CMS to whatever javascript I can use within the A tag. </p>

<p>If it's not already obvious, I'm a complete newbie with javascript, so please don't feel your potential response is insultingly basic.</p>
