Put select element in a javascript prompt?

后端 未结 2 1410
滥情空心
滥情空心 2020-12-19 08:44

I would like to have a javascript prompt pop up that has a selection element in it rather than a text input. When searching for a solution it seems that using jquery could d

相关标签:
2条回答
  • 2020-12-19 09:43

    No it's not possible with prompt; If you want such thing you'll have to fake a dialog box in javascript

    0 讨论(0)
  • 2020-12-19 09:46

    What you're looking for is called a modal dialog. This is really just a DIV with HTML inside it, with an overlay over the rest of the page.

    You can roll-your-own or use a ready-made one from a library.

    0 讨论(0)
提交回复
热议问题