jQuery组合框(用户选择)/文本验证

时间:2022-11-29 21:00:09

Is there a way to have a text validation tool for jQuery such that:

有没有办法为jQuery提供文本验证工具,以便:

Box 1: Hi Box 2: Automatically fills with Hi if Hi is entered in Box 1

方框1:Hi Box 2:如果在方框1中输入Hi,则自动填充Hi

In another case if,

在另一种情况下如果,

Box 1: Bye Box 2: If the user enters Bye in Box 2 it says that they entered an invalid response

方框1:再见方框2:如果用户在方框2中输入了Bye,则表示他们输入的回复无效

Also is it possible to have it such that if Choice A is selected in a a combo box it auto fills some of the text boxes and prevents the user from editing them?

还有可能这样,如果在组合框中选择了选择A,它会自动填充一些文本框并阻止用户编辑它们吗?

Thanks,

1 个解决方案

#1


You'll want to take a look at jQuery event handlers at jQuery Events/Bind.

你想看看jQuery Events / Bind上的jQuery事件处理程序。

#1


You'll want to take a look at jQuery event handlers at jQuery Events/Bind.

你想看看jQuery Events / Bind上的jQuery事件处理程序。