admin管理员组文章数量:1316980
This looks fairly simple, but 30 minutes of googling took me nowhere. :-(
How do I create a simple JavaScript dialog / alert with a bo box so my user can select a value before submitting? I am using this for a rejection reason so user clicks on reject button and must select a reason from a bo box inside an alert / dialog popup window before submitting.
Thanks!
This looks fairly simple, but 30 minutes of googling took me nowhere. :-(
How do I create a simple JavaScript dialog / alert with a bo box so my user can select a value before submitting? I am using this for a rejection reason so user clicks on reject button and must select a reason from a bo box inside an alert / dialog popup window before submitting.
Thanks!
Share Improve this question asked Jul 13, 2010 at 1:18 TraderJoeChicagoTraderJoeChicago 6,3258 gold badges52 silver badges55 bronze badges 1- Isn't something already made for that? JQuery? Prototype? It looks like something basic to be re-used over and over again... – TraderJoeChicago Commented Jul 13, 2010 at 1:45
3 Answers
Reset to default 3The inbuilt JavaScript dialog functions alert
, prompt
and confirm
can't do this. Rather than use a "real" popup instead, which creates a button in the taskbar, try creating a window-like <div>
element as an in-page popup, with the bo box.
See if Impromptu suits you. Check example number 17.
You can't do that with alert(), prompt(), or confirm() methods. You would have to create a popup or popin to host the bo box (select).
本文标签: A JavaScript alert or dialog with a combo boxStack Overflow
版权声明:本文标题:A JavaScript alert or dialog with a combo box - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742008720a2412487.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论