简体   繁体   English

在javascript中创建带有下拉框的提示输入对话框?

[英]Create prompt input dialog with dropdown box in javascript?

Does anyone know how can I create a prompt input dialog with dropdown box in javascript? 有谁知道如何在javascript中创建带有下拉框的提示输入对话框?

Example: 例:

替代文字

I don't think this is possible, you're probably going to have to use a modal box of some sort. 我认为这是不可能的,您可能必须使用某种模式框。 Check out jQuery UI's modal box at http://jqueryui.com/demos/dialog/ http://jqueryui.com/demos/dialog/中查看jQuery UI的模式框

Ya, you're probably going to have to settle for a modal... although you could style it to look pretty much the same. 是的,您可能需要适应一种模态...尽管您可以设置其样式以使其外观几乎相同。 Although it would be limited to being within the parent window. 尽管它将仅限于父窗口内。 But if you're ok with that, use a modal (jQuery's or whatever) and then just style it to look like what you're going for. 但是,如果您对此表示满意,请使用模式(jQuery或其他),然后对其进行样式设置,使其看起来像您想要的那样。

Unfortunately you can not have an input dialog box like that. 不幸的是,您不能有这样的输入对话框。 You will have to settle for a modal dialog box which can use styling. 您将必须准备一个可以使用样式的模式对话框。
Have a look at these example: 看下面的例子:
http://dev.iceburg.net/jquery/jqModal/#examples http://dev.iceburg.net/jquery/jqModal/#examples

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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