title: How do I get the custom attribute of a multiple select
body: <p>Does anyone know how to get the value of a custom attribute "custom" from a select multiple? I think you would get an array by selecting several elements</p>
  
  <pre><code>&lt;select class="selectpicker" multiple&gt;
    &lt;option custom="Mustolest"&gt;Mustard&lt;/option&gt;
    &lt;option custom="Kellared"&gt;Ketchup&lt;/option&gt;
    &lt;option custom="Reloaded"&gt;Relish&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I'm using bootstrap select. What I have tried is the following:</p>
  
  <pre><code>$(function() {
    $('.selectpicker').selectpicker();
  
    $('.selectpicker').on("change",function() {
      console.log($('.selectpicker').selectpicker("val"));
    }); 
  
  })
  </code></pre>
  
  <p>With this I get the values ​​in the form of an array, correct. But I need to get over a custom attribute. The options that you have given me would not be working for me.</p>