简体   繁体   中英

longer text in a selectBoxIt drop-down list is not visible (if chosen)

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:

https://jsfiddle.net/ZTs42/2/

$(function(){

            $("#testselectset").selectBoxIt({
                theme: "default",
                defaultText: "Make a selection...",
                autoWidth: false
            });
            $("#testselectset").change(function(){
                alert("You selected: "+this.value+" from the Selectboxit plugin");
            });

        });

https://github.com/gfranko/jquery.selectBoxIt.js/issues/129

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM