title: JavaScript - Uncaught SyntaxError: missing ) after argument list
body: <p>I am working on MVC project and I am running into an error when I am trying to open a Bootstrap modal. </p>
  
  <p>The error message I am getting is: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: missing ) after argument list</p>
  </blockquote>
  
  <p>This is the button with the OnClick call:</p>
  
  <pre><code>&lt;button id="btnVenueDelete" onclick="DeleteModal(@item.VenueName, @item.VenueID);" class="btn btn-sm btn-info"&gt;Delete&lt;/button&gt;
  </code></pre>
  
  <p>This is the JavaScript function:</p>
  
  <pre><code>function DeleteModal(name, id) {
          console.log(Name);
          console.log(ID);
  
          txtModal.innerText = "Delete" + Name;
          $("#VenueModal").modal();
      }
  </code></pre>
  
  <p>I think the problem is due to something in the button as I am not seeing the console logs in the developer console.</p>