Select2 function is not working

my jsfiddle link: https://jsfiddle.net/g9hwjggm/1/


<form action="">
<select id="e2" name="set" style="width: 100px">
    <option value="hiii">hiii</option>
    <option value="hlel">hlel</option>
    <option value="lolol">lolol</option>
    <option value="fb">fb</option>
    <option value="share">share</option>
</select></form>

$(document).ready(function(){
     $("#e2").select2({});
});

select2 function is not working please help …

Your JS external resources in the fiddle are giving a 404 and are not found.

select2.js is not connected.
ref this for more details
https://select2.github.io/examples.html

thanks all of you for reply.now it’s work.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.