title: Select element onChange event is not firing in ASP.NET MVC Core 2.2 (javascript)
body: <p>I am trying to add an select element with onChange event to be fired with a javascript function.
  I have the following code</p>
  
  <pre><code>&lt;select asp-for="CardTypeId" 
          asp-items="..."
          class="selectpicker form-control" size="1"
          onchange="cardTypeId_OnChange"&gt;
      &lt;option selected="selected"&gt;Item 1&lt;/option&gt;
      &lt;option&gt;Item 2&lt;/option&gt;
  &lt;/select&gt;   
  
  &lt;script&gt;
  
      function cardTypeId_OnChange() {
  
          alert('cardTypeId_OnChange');
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>In this example i want that onchange to fire the cardTypeId_OnChange javascript function, and to not fire a function in server side.</p>