[紧急]表格验证如果&然后! [英] [Urgently] Form Validation If & then!

查看:109
本文介绍了[紧急]表格验证如果&然后!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,首先我希望你能理解我...

所以如果有人选择了选项 A <我想要显示一个javascript / u>显示 A1 A2 A3 的javascripts,如果他们选择 B 显示 B1 B2 B3 的javascripts。所以 A B 首先会从< select>中选择它作为选项标签

例如。

Hi guys, first i hope u will understand me...
So i want to make a javascript to be shown if somebody chooses option A to show the javascripts for the A1,A2,A3 and if they choose B to show javascripts for the B1,B2,B3. So the A and B it will firstly asked as options from a <select> tag
eg.

展开 | 选择 | Wrap | 行号

推荐答案

PS:我不喜欢当他们选择 A 来获取 B 选项javascripts时,我们不想做出并发症。
P.S: I don''t want to make complications when they choose A to get B option javascripts.


我不确定你的意思。您是否想要根据所选内容使用这些值填充不同的下拉列表?您可以使用onchange事件来调用javascript函数,该函数将这些选项添加到另一个下拉列表中。如果你的意思是别的,那么我不明白你在寻找什么。
I''m not sure what you mean. Do you mean you want to populate a different drop down list with those values depending on what is selected? You can use the onchange event to call a javascript function that will add those options to the other drop down list. If you mean something else, then I don''t understand what it is that you''re looking for.


你好兔子,谢谢你的回复,我的意思是如果我们选择OPTION A将显示一些Input-s ....并且javascript将仅询问所显示的输入-s因此它意味着OPTION A input-s ...但是不要求OPTION B输入-s甚至他们''没有显示因为我们没有选择选项B ...我希望我能为你解释一下。
Hi Rabbit, thank for your reply, i mean if We select OPTION A there will be shown some Input-s ....and javascript will ask only for the shown input-s so it means OPTION A input-s ... but not to ask for OPTION B input-s too even that they''re not shown cause we didnt select OPTION B ... i hope i explained a little for you.


这篇关于[紧急]表格验证如果&amp;然后!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆