title: Populate <Table> rows with HTML
body: <p>I have a blank table on a screen:</p>
  
  <pre><code>&lt;table id="TransactionTable" class="table table-responsive table-striped"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;/th&gt;
              &lt;th&gt;Date&lt;/th&gt;
              &lt;th&gt;Account&lt;/th&gt;
              &lt;th&gt;Third Party&lt;/th&gt;
              &lt;th class="text-right"&gt;Amount&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;&lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>In my controller, I build up some HTML rows for this table, using text:</p>
  
  <pre><code>foreach(var i in transactions) {
      tblCode += "&lt;tr&gt;";
      tblCode += string.Format(
          "&lt;td&gt;&lt;a href=\"@Url.Action(\"EditTransaction\", \"Transaction\" class=\"btn btn-sm btn-success\" title=\"View Transaction\"&gt;View&lt;/a&gt;&lt;/td&gt;");
      tblCode += string.Format("&lt;td class=\"small-bold-cell\"&gt;{0}&lt;/td&gt;", i.Date.ToString("dd.MMM.yyyy"));
      tblCode += string.Format("&lt;td class=\"small-cell\"&gt;{0}&lt;/td&gt;", i.EntityEventTypeId == (int) Constants.EntityEventTypes.Payment ? i.DestinationEntityFull : i.SourceEntityFull);
      tblCode += string.Format("&lt;td class=\"small-cell\"&gt;{0}&lt;/td&gt;", i.EntityEventTypeId == (int) Constants.EntityEventTypes.Payment ? i.SourceEntityFull : i.DestinationEntityFull);
      tblCode += string.Format("&lt;td class=\"small-bold-cell text-right\"&gt;{0}&lt;/td&gt;", i.Amount.ToString("C2"));
  
      tblCode += "&lt;/tr&gt;";
  
  }
  </code></pre>
  
  <p>I then pass this back to my javascript in a JSON Result, and using Chrome, I can see the HTML code in the returned object.</p>
  
  <p>I then attempt to add that HTML code to my table.</p>
  
  <pre><code>if (result.Success == 'true') {
      $.unblockUI();
      $('#TransactionTable').innerHTML = result.TableCode;
      $('#transactions').modal('show');
  
  }
  else {
      $.unblockUI();
      alert("error");
  }
  </code></pre>
  
  <p>But it doesn't seem to add the code at all. The table has nothing in it once displayed.</p>
  
  <p>What am I doing incorrectly?</p>