I'm using this jQuery plugin to handle select element on my site: bootstrap-select
Unfortunately, I can't found any option which allow me add a custom attribute to the select element, for e.g:
I want my dropdown look like this:
<select class="dropdown" data-live-search="true">
...
</select>
Is there any chance for me?
wp_dropdown_categories
but why not add the attribute at runtime using JavaScript before initiating thebootstrap-select
select
andoption
elements, or add the attribute per JavaScript. There is no other way.