I want to do with Javascript or jQuery the same I do with JOptionPane.showInputDialog()
in Java.
Show an input window to the user enter some information.
How can I do this?
您可以为此使用prompt(text, value)
。
If you're looking for something more stylish or involved than merely a prompt (which Quentin answered with), that's a very involved question that's likely too complex to answer here.
Try doing a google search for "jquery modal form". You'll find lots of tutorials.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.