如何在此代码中添加第二个/第三个框 [英] How do I add a second/third box to this code

查看:61
本文介绍了如何在此代码中添加第二个/第三个框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个jsfiddle,我在另一个网站上看过。



< a href =http://jsfiddle.net/XssCG/307/> http://jsfiddle.net/XssCG/307/ [ ^ ]



完美地完成工作,但我想使用相同的工作代码四五次。所以在一种形式中使用这个是/否下拉列表,并根据答案,其他下拉列表变得可用。



就这么明确我想要完全相同的我只能重复一遍。



我该怎么办?



我试过了这么多不同的方式,我只是无法解决这个问题



谢谢

Hi,

I have a jsfiddle which I have seen off another site.

http://jsfiddle.net/XssCG/307/[^]

It does the job perfectly, but I want to use the same code four or five times. So in one form use this Yes/No drop down list and depending on the answer the other drop lists become available.

Just so it's clear I want the exact same as I have but a repeat of it.

How do I do this?

I've tried so many different ways, I just can't work it out

Thank you

推荐答案

所以,它执行一个函数 onchange DropDownList 的事件,并在其中试图启用它。
So, it executes a function onchange event of the DropDownList and inside that it is trying to enable it.
<select id="mySelect" onChange="check(this);">



您必须按照相同的步骤为<$ c定义 onchange 事件处理程序$ c> DripDownLists 并在该函数中执行您想做的任何事情,


You have to follow the same procedure and define the onchange Event Handler for those DripDownLists and do whatever you want to do in that function,


这篇关于如何在此代码中添加第二个/第三个框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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