我有一个使用selectBoxIt的下拉列表。如果一个选项比下拉菜单的宽度大,文本将会消失。我在互联网上找不到解决方案。
以下两张图片显示了该问题:
如果文本比菜单的宽度短,则一切正常

如果文本较长,则菜单显示为空

下面是我初始化selectBoxIt的方法
$(function() {
var selectBox = $("select").selectBoxIt({ autoWidth: false });
});我的selectBoxIt版本为v3.8.1
发布于 2017-04-22 06:29:17
看看这些链接:
$(function(){
$("#testselectset").selectBoxIt({
theme: "default",
defaultText: "Make a selection...",
autoWidth: false
});
$("#testselectset").change(function(){
alert("You selected: "+this.value+" from the Selectboxit plugin");
});
});https://stackoverflow.com/questions/43539826
复制相似问题