title: Update using Prototype and Ajax
body: <p>I am using <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="nofollow noreferrer">Ajax</a> and <a href="http://en.wikipedia.org/wiki/Prototype_JavaScript_Framework" rel="nofollow noreferrer">Prototype</a>. In my code, I need to update the contents of a <code>div</code>.</p>
  <h3>My <code>div</code>:</h3>
  <pre><code>&lt;div id=&quot;update&quot;&gt;
      1. Content_1
  &lt;/div&gt;
  </code></pre>
  <h3>My code:</h3>
  <pre><code>Element.update($(&quot;update&quot;),&quot;2.Content_2&quot;);
  </code></pre>
  <h3>Expected output:</h3>
  <pre><code>&lt;div id=&quot;update&quot;&gt;
      1.Content_1
      2.Content_2
  &lt;/div&gt;
  </code></pre>
  <p>How can I do this in Ajax and Prototype?</p>