jQuery not replacing some text
<p>I've been working on a project that involves ajax; it's a planner for school assignments. When a button is pressed, it's supposed to change the text inside of 31 <code>&lt;textarea&gt;</code>'s (and one <code>&lt;span&gt;</code>) based on data it gets from the server. The thing is, textareas that have been changed after the last time the window was refreshed don't change. I've looked over the JSON sent between the server and the webpage and vice-versa, and concluded that the bug is in the success function of the ajax call. Here's the code:</p>

<pre><code>  success: function(data) {                
    $("span#date").text(data['date']);
    $("#assignments").find("textarea").each(function() {
      $(this).text("");
      $(this).html(data[$(this).attr("id")]);
    });
    console.log(data); // I was using this to see if the data received from the server was correct
  }
</code></pre>

<p>Thanks very much in advance for any help.</p>
