title: Modify a HTML element with jQuery and access the updates on the server (ASP.NET)
body: <p>I have a html element: </p>
  
  <pre><code>&lt;div id="myElement" class="someClass" onclick="setText(this.innerHtml)" runat="server"&gt;text&lt;/div&gt;
  </code></pre>
  
  <p>I want to be able to change this element on the client side using some jquery like so:</p>
  
  <pre><code>function setText(text) {            
      $(".someClass").text(text);
  }
  </code></pre>
  
  <p>--OR--</p>
  
  <pre><code>function setAttribute(text) {            
      $(".someClass").attr("myAttr",text);
  }
  </code></pre>
  
  <p>Once I do this I want to grab this element's new text or new attribute and then store the value of either or, server side. I should note that I then postback to the server using a LinkButton. It is at this time that when I look at the element the default text is still present or the new attribute I added is missing. </p>
  
  <p>Can someone explain why the element does not get updated on the server and how I can get it too?</p>