为年轻用户替代 Javascript 提示框

Alternative to Javascript prompt box for younger users(为年轻用户替代 Javascript 提示框)

本文介绍了为年轻用户替代 Javascript 提示框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能推荐一个更适合年轻用户的 Javascript 提示框替代方案?

Can anyone can suggest an alternative to Javascript prompt box that is better for young users?

prompt("Please enter your name:", "Harry Potter");

检查一下.

由于输入框需要为儿童设计,所以我希望提示框更加丰富多彩和活泼.我可以使用任何建议的现有盒子吗?
要求是我必须让用户输入一个字符串,接收它.

Since the input box needs to be designed for children, I want the prompt box to be more colorful and lively. Any suggested existing box that I can use?
The requirement is that I have to let the user enter a string, receiving it.

推荐答案

你试过 jQuery UI 库吗?

Have you tried the jQuery UI library?

您可以在此处查看模态表单

您可以修改样式或从不同的主题中进行选择.

You can modify the styles or select from different themes.

这篇关于为年轻用户替代 Javascript 提示框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:为年轻用户替代 Javascript 提示框

基础教程推荐