easyui 相关

qq_15253253 2015-10-21 04:22:56
请教各位:
最新使用easyUI发现一个问题,点击按钮弹出对话框后,需要在对话框上展示一个下拉列表,由于需求,这个下拉框需要多选,那么问题来了,怎么才能在对话框上加载一个动态的下拉框(下拉框的数据是从数据库获得的)。希望各位大侠不吝赐教。谢谢

$("#pdailog").dialog({
title : "组件事件设置",
width : 300,
height : (f.type == "table" ? 290 : 250),
closed : false,
cache : false,
modal : true,
toolbar : null,
content : p,
buttons : [ {
text : "确定",
handler : function() {
//dosomething
$("#pdailog").dialog("close")
}
}, {
text : "取消",
handler : function() {
$("#pdailog").dialog("close")
}
} ]
...全文
67 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Go 旅城通票 2015-10-21
  • 打赏
  • 举报
回复

        $("#pdailog").dialog({
            title: "组件事件设置",
            width: 300,
            height : (f.type == "table" ? 290 : 250),
            closed: false,
            cache: false,
            modal: true,
            toolbar: null,
            content: '<input type="text" id="cc" />',
            onOpen: function () {
                console.log($('#cc'))
                $('#cc').combobox({/*combobox配置*/})////////////
            },
            buttons: [{
                text: "确定",
                handler: function () {
                    //dosomething
                    $("#pdailog").dialog("close")
                }
            }, {
                text: "取消",
                handler: function () {
                    $("#pdailog").dialog("close")
                }
            }]
        });

87,955

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧