title: JavaScript runtime error: Syntax error, unrecognized expression: /Dashboard/Dashboard
body: <p>Okay I am getting this error when clicking on tab in my ASP.NET MVC application. It is using jquery and bootstrap. This error is supposedly coming out of jquery-3.2.1.min.js. </p>
  
  <p>My ASP.NET code is:</p>
  
  <pre><code>&lt;div class="col"&gt;
      &lt;ul class="nav nav-tabs"&gt;
          &lt;li id="user-dash"&gt;
              &lt;a data-toggle="tab" href="@Url.Action("Dashboard", 
               "Dashboard")"&gt;Home&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>So when I click that tab there it ends up throwing this error. There are actually more tabs, but didn't copy them for brevity. So there appears to be something it doesn't like about the <code>@Url.Action("Dashboard", "Dashboard")</code> However, I have used this on different tabs and it worked just fine. I cannot for the life of me figure it out. If there is more info needed let me know. </p>
  
  <p>Thanks!</p>