(JavaScript) Easyui click the combobox box content display options

Generally there is hidden display drop-down box, the following code is provided $ (function () {in which:

//单击Combox内容框弹出下拉菜单
    $(".combo").click(function (e) {
        if ($(this).prev().combobox("panel").is(":visible")) {
            $(this).prev().combobox("hidePanel");
        } else {
            $(this).prev().combobox("showPanel");
        }
    });

This setting is used for time in combox page to bind the data items, as:

 

If the note is shown at combox set can not achieve the desired results

 At this time, the note code can be changed to:

//单击Combox内容框弹出下拉菜单
    $(".combo").click(function (e) {
        $(this).prev().combobox("showPanel");
    });

This code is also applied to a first combox.

Guess you like

Origin blog.csdn.net/cillent_boy/article/details/91489461