title: jQuery Bootstrap Toggle - Uncaught Error: Syntax error, unrecognized expression: # at Function.Sizzle.error
body: <p>I am using Jquery 3.3.1 and Bootstrap 3.3.7 pulled via npm.</p>
  
  <p>I have the following markup to toggle a div:</p>
  
  <pre><code>&lt;div class="text-right"&gt;
       &lt;a class="js-accordion-trigger" data-toggle="collapse" href="#advanced-search" aria-expanded="false" aria-controls="advanced-search"&gt;Advanced search &lt;span class="js-notifier"&gt;&lt;/span&gt;&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div id="advanced-search" class="js-accordion-content collapse"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>However I am now getting the following error in console:</p>
  
  <pre><code>libs.js:1541 Uncaught Error: Syntax error, unrecognized expression: #
  at Function.Sizzle.error (libs.js:1541)
  at Sizzle.tokenize (libs.js:2193)
  at Sizzle.select (libs.js:2620)
  at Function.Sizzle [as find] (libs.js:845)
  at jQuery.fn.init.find (libs.js:2873)
  at new jQuery.fn.init (libs.js:2983)
  at jQuery (libs.js:139)
  at getParent (libs.js:11147)
  at HTMLAnchorElement.&lt;anonymous&gt; (libs.js:11157)
  at Function.each (libs.js:354)
  </code></pre>