asp.net + Code behind send table rows to Javascript
<p>I am trying to send some table row data from code behind to process in my Javascript but I get an error in my console: </p>

<pre><code>Uncaught TypeError: Object &lt;tr&gt;&lt;td&gt;usr1&lt;/td&gt;&lt;td &gt;Z&lt;/td&gt;&lt;td&gt;40&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;usr2&lt;/td&gt;&lt;td &gt;G&lt;/td&gt;&lt;td&gt;23&lt;/td&gt;&lt;/tr&gt; has no method 'hide' . 
</code></pre>

<p>Can someone please advise what is the problem? Thanks. </p>

<p><strong>Javascript:</strong></p>

<pre><code> function addRows(rows) {
          var _rows = $(' ' +  rows + ' ');
          rows.hide();
           $('tr:last-child').after(_rows);
          rows.fadeIn("slow");
      }
</code></pre>

<p><strong>Code Behind:</strong></p>

<pre><code>           foreach (DataRow row in dt.Rows)
           {
              rows += string.Format("&lt;tr&gt;&lt;td&gt;" + row["UserName"] + "&lt;/td&gt;&lt;td &gt;" + row["Name"] +"&lt;/td&gt;&lt;td&gt;" + row["Age"] + "&lt;/td&gt;&lt;/tr&gt;");
           }
           addRows = string.Format("addRows('{0}')", rows);
           GeneralHelper.RegisterClientScriptBlock(uiupUsr, addRows);
</code></pre>
