title: Build table using partial view with Ajax requests
body: <p>I need to dynamically create (insert) a new table row every time user presses button (using Ajax). My partial view structure:</p>
  
  <pre><code>    &lt;tr&gt;
           &lt;td&gt;&lt;td&gt;
           &lt;td&gt;&lt;td&gt;
           ...
      &lt;/tr&gt;
  </code></pre>
  
  <p>When I need insert new row at the end I can do something like this:</p>
  
  <pre><code>    element_table.innerHTML += ajax_data
  </code></pre>
  
  <p>But what I must do when I need to place it between other rows?</p>
  
  <p>I can return only [td] elements and wrap them in [tr] clientside created element (tr.innerHTML = ajax_data) but I don't think this is a good idea.</p>
  
  <p>Any ideas?</p>
  
  <p>Are there any common practises?</p>