title: How to set HTML parameters via Jquery script?
body: <p>I'm trying to apply <strong>Bootstrap-select</strong> plugin to my MVC 5 application. In fact, it is working, but I can't customize it because in documentation examples are given as HTML parameters and I do not know how to apply them to my razor view.</p>
  
  <p>Here is my cshtml dropdownlist:</p>
  
  <pre><code>`@Html.DropDownList("Suppliers", new MultiSelectList(ViewBag.Suppliers, 
  "SupplierID", "Name"), new { multiple = "multiple", @class = "selectpicker" })`
  </code></pre>
  
  <p>Here is my script:</p>
  
  <pre><code>`&lt;script&gt;
      $(document).ready(function () {
          //$(".selectpicker").selectpicker('selectAll');
          $('.selectpicker').selectpicker({ liveSearch: true, ac });
      });
  &lt;/script&gt;`
  </code></pre>
  
  <p>Here is an example of an HTML parameter:</p>
  
  <pre><code>`&lt;select class="selectpicker" data-live-search="true"&gt;
   &lt;option data-tokens="ketchup mustard"&gt;Hot Dog, Fries and a Soda&lt;/option&gt;
   &lt;option data-tokens="mustard"&gt;Burger, Shake and a Smile&lt;/option&gt;
   &lt;option data-tokens="frosting"&gt;Sugar, Spice and all things nice&lt;/option&gt;
  &lt;/select&gt;`
  </code></pre>
  
  <p>I need to apply <code>data-live-search="true"</code> parameter to my dropdownlist.</p>
  
  <p>Link to Bootstrap-select: <a href="https://developer.snapappointments.com/bootstrap-select/" rel="nofollow noreferrer">https://developer.snapappointments.com/bootstrap-select/</a></p>