Create prompt input dialog with dropdown box in javascript?

纵饮孤独 提交于 2019-12-20 03:18:08

问题


Does anyone know how can I create a prompt input dialog with dropdown box in javascript?

Example:


回答1:


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/




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/3732703/create-prompt-input-dialog-with-dropdown-box-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!