title: Dynamically setting anchor text from javascript click()
body: <p>I have an anchor in the body of my html:</p>
  
  <pre><code>&lt;a id="title" class="acc" &gt;&lt;/a&gt;
  </code></pre>
  
  <p>Then I have the following javascript.  The anchor text is set to 'aaa' from the first statement below.  When I click on the 'list' element, I get the alert but the anchor text is not updated.  Is something wrong here?</p>
  
  <pre><code>$(document).ready(function(){
          $('#title').text("aaa");
  
          $("#list").click(function() {
              alert($(this).text());
              $('#title').text("new title");
          });
  });
  </code></pre>