title: Append c# string using jquery in ASP.Net MVC Razor
body: <p>I am working with ASP.Net MVC Razor.I have tried the following way to add a table row in my table body that is not working: </p>
  
  <pre><code>&lt;script&gt;
              $(document).ready(function() {
  
              @foreach (var billdetail in Model.BillDetails)
              {
                  var row = "&lt;tr class='productTableRow'&gt;&lt;td&gt;" + billdetail.ModelName + "&lt;/td&gt;&lt;td class='price' &gt;" + billdetail.Price + " &lt;/td&gt;&lt;td&gt;&lt;input type='text' class='form-control unit' data-validation='Unit' nonZero='true' currentStockAmount=" + billdetail.CurrentAmount + " /&gt;&lt;/td&gt;&lt;td class='total'&gt;"+(billdetail.Price*billdetail.Price)+"&lt;/td&gt;&lt;td&gt;&lt;input type='button' class='btn btn-danger removeRow' data-modelId=" + billdetail.ModelId + " value='Remove'  / &gt;&lt;/td&gt;&lt;td style='visibility:hidden;'&gt;" +
                                     "&lt;input type='hidden' class='hiddenModel' value='" + billdetail.ModelId + "'&gt;" +
                                     "&lt;input type='hidden' class='hiddenPrice' value='" + billdetail.Price + "'&gt;" +
                                     "&lt;/td&gt;&lt;/tr&gt;";
  
                  @:$("#productBody").append(@row);
              }
  
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>It is showing the error:<code>Uncaught SyntaxError: Unexpected token &amp;</code>
  What is the proper way to do it.</p>