Javascript – Bootstrap select plugin is not working

javascriptjquerytwitter-bootstrap

I am trying to use this Bootstrap-Select Plugin. I have created a fiddle also according to the demo,

http://jsbin.com/anepet/1/edit

But i am totally blank and not understand why this is not working, the appearance of select list is not changing, can anybody please help me out?

Best Answer

Perhaps add the invocation to make all .selectpicker elements a selectpicker? You will pretty much hit your head after seeing this. In the source of the Select plugin page you will see countless times where the demo uses a css selector to invoke .selectpicker() on the elements.

<script type="text/javascript">
    $('.selectpicker').selectpicker();
</script>

Please see. http://jsbin.com/anepet/3/edit