Get the current value in bootstrap-select

I think the answer may be easier to understand like this: $(‘#empid’).on(‘click’,function() { alert($(this).val()); console.log($(this).val()); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js”></script> <select id=”empid” name=”empname” multiple=”multiple”> <option value=”0″>item0</option> <option value=”1″>item1</option> <option value=”2″>item2</option> <option value=”3″>item3</option> <option value=”4″>item4</option> </select> <br /> Hold CTRL / CMD for selecting multiple fields If you select “item1” and “item2” in the list, the output will … Read more

Is there an separator for elements?

The disabled option approach seems to look the best and be the best supported. I’ve also included an example of using the optgroup. optgroup (this way kinda sucks): <select> <optgroup> <option>First</option> </optgroup> <optgroup label=”_________”> <option>Second</option> <option>Third</option> </optgroup> </select> disabled option (a bit better): <select> <option>First</option> <option disabled>_________</option> <option>Second</option> <option>Third</option> </select> And if you want to … Read more

Close a SELECT dropdown list programmatically with Javascript/jQuery

I’m not sure about anyone else, but I’m using the latest stable build of Chrome, and none of the other answers involving .blur() work for me. This question asks the inverse: Programmatically open a drop-down menu The conclusion that seemed to be obtained is that it’s not possible due to the way the browser handles … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)