1

如何在 jquery 对话框上放置一个可选择的动态列表。我想要做的是当用户单击一个按钮时会出现一个对话框,并且该列表由来自 sqlite 数据库的结果填充。用户然后单击他/她想要的结果,然后单击对话框上的按钮以加载结果。

我的对话框代码如下...我希望在打开显示 SQLite 结果的对话框时出现一个列表。

function setImportDialog()
{
    $('#importDialog').dialog({
        resizeable: false,
        autoOpen: false,
        modal: true,
        buttons:{
            "Import Test": function(){
                if( isWindows() ) 
                {
                    log("Importing Test Data: ");
                    importTestData(); //' here is where it would grab the selected item and perform actions on said item
                }
                $(this).dialog("close");
            },
            "Cancel": function(){
                $(this).dialog("close");

            }
        } });
}
4

0 回答 0