title: JavaScript on Bootstrap 5 bug
body: <p>I am not sure why the below JS will not work on my Bootstrap page. I am getting this code straight from an online tutorial and I cannot seem to get it to work the way the instructor does. The console is telling me he issue is on the 3 line of the below script.</p>
  <pre><code>if (error != &quot;&quot;)
                  {
              $(&quot;#error&quot;).html('&lt;div class=&quot;alert alert-danger&quot;
              role=&quot;alert&quot;&gt;&lt;strong&gt; There was error(s) in your form:&lt;/strong&gt;'
              + error+ '&lt;/div&gt;');
          
              }
  });
  </code></pre>