I have a drop-down list using selectBoxIt. if an Option, is longer than width of the drop down menu, the text will be disappear if chosen.I couldn't find the solution on the internet.
following 2 pictures show the problem:
if the text is shorter than the width of menu, everything is fine
if the text is longer, menu shows empty
here is how i initialize selectBoxIt
$(function() {
var selectBox = $("select").selectBoxIt({ autoWidth: false });
});
My selectBoxIt has version v3.8.1
Have a look at these links:
$(function(){
$("#testselectset").selectBoxIt({
theme: "default",
defaultText: "Make a selection...",
autoWidth: false
});
$("#testselectset").change(function(){
alert("You selected: "+this.value+" from the Selectboxit plugin");
});
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.