jQuery,克隆选择,禁用以前选择的选项 [英] jQuery, Clone select, disable previously selected options

查看:68
本文介绍了jQuery,克隆选择,禁用以前选择的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在此网站上工作,用户可以在其中创建自己的捆绑软件.基本上,他们有一个课程列表,可以选择5个课程并创建一个捆绑包.

I'm working on this website where users can create their own bundles. Basically they have a list of courses and they can pick 5 and create a bundle.

我采用的方法是所有课程的下拉列表,然后单击这些内容即可将其克隆出来.

The approach I'm taking is a dropdown list of all courses that then gets cloned on click.

我想做的是禁用下一个克隆列表中所有先前选择的项目.

What I'd like to do is disable any previously selected items on the next cloned list.

这可能吗?

这是我的代码: http://jsfiddle.net/Y4fLM/

非常感谢!

推荐答案

您也可以尝试这个

http://jsfiddle.net/Y4fLM/3/

关于您的问题,看来这可能对您有所帮助.

As with your question it seems may be this could be helpful for you.

这篇关于jQuery,克隆选择,禁用以前选择的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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