Replace anchor text with the text of the clicked of the LI
<p>I am looking to replace the anchor text of a.location-trigger with text of the selected locations.li</p>

<pre><code>            &lt;a class="location-trigger" href="#"&gt;US&lt;/a&gt;
            &lt;ul class="locations"&gt;
                &lt;li&gt;US&lt;/li&gt;
                &lt;li&gt;CA&lt;/li&gt;
                &lt;li&gt;FR&lt;/li&gt;
                &lt;li&gt;DE&lt;/li&gt;
                &lt;li&gt;HK&lt;/li&gt;
                &lt;li&gt;JP&lt;/li&gt;
                &lt;li&gt;UK&lt;/li&gt;
            &lt;/ul&gt;
</code></pre>
