How to reference <a> within <li> with jQuery
<p>I want to replace the <code>HREF</code>s in a list with new URLs.</p>

<p>I have something like this:</p>

<pre><code>&lt;ul id="sidebarItems"&gt;
   &lt;li&gt;&lt;a href="/PartBasicInfo/XX"&gt;Part Basic Info&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="/SupplierContracts/XX"&gt;Supplier Contracts&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I'm trying this (I know there are lots of ways to do it), but not having any luck. Any ideas?</p>

<pre><code>function SetUrlParams() {
        $("#sidebarItems &gt; li &gt; a").each(function (idx, a) {
            a.attr("href", "MyURLOfChoice");
        });
</code></pre>
