html - Bootstrap select not working -


i have this:

<select class="selectpicker" name="level"> <option value="field">field admin</option> <option value="text">text admin</option> <option value="bot">bot</option> </select> 

with @ bottom:

<script src='./clientlib/bootstrap-select.js'></script> 

adding (at bottom of page after loading above script) doesn't work:

 $('.selectpicker').selectpicker(); 

right now, button gets formatted clicking select not load drop down. pressing alt loads drop down there no way close dropdown, if select option.

anyone have ideas on why happening?

try load script in head section of page , '$('.selectpicker').selectpicker();' @ bottom of page


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -