Change text with jQuery
<p>I need to change the text within a link on click from 'open' to 'close'.</p>

<pre><code>&lt;a href="#" id="clickMe"&gt;&lt;span class="A open"&gt;&lt;/span&gt;open&lt;/a&gt;
</code></pre>

<p>But how do I change the label after I run an AJAX function on success?</p>

<pre><code>success: function(){
   $("#clickMe").find("span").toggleClass("open close");
   // toggle label 
}
</code></pre>
