Select2 Search Metronic HTML on laravel not working
Hello,
I hope you can help me.
I have been trying to figure out how i can make the search option on select2 work but i can't seem to find a way.
Here's the html code :
<select class="form-select" data-control="select2"
data-placeholder="Select an option" data-dropdown parent="#modal_element_id" tabindex="-1">
<option></option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
and i imported the styles and scripts successfully. But the search bar is not showing up.
How can I fix this ? Thanks in advance.
Replies (1)
Hi Ali Silarbi,
Sorry for the delay. Could you please check the console log if there is any JS error?
Thanks