左右列表框内容选择控件
来源:互联网 发布:java 规则引擎 编辑:程序博客网 时间:2024/06/18 09:07
$("#right").click(function(){$("#selectB option:selected").attr("selected",false);$("#selectA option:selected").appendTo("#selectB");});$("#left").click(function(){$("#selectA option:selected").attr("selected",false);$("#selectB option:selected").appendTo("#selectA");});$("#rightAll").click(function(){$("#selectA option").appendTo("#selectB");});$("#leftAll").click(function(){$("#selectB option").appendTo("#selectA");});$("#selectA").dblclick(function(){$("#selectB option:selected").attr("selected",false);$("#selectA option:selected").appendTo("#selectB");});$("#selectB").dblclick(function(){$("#selectA option:selected").attr("selected",false);$("#selectB option:selected").appendTo("#selectA");});
<table id="tableA" width="400" border="0"> <tr> <td width="179" rowspan="2"><div align="right"> <select name="select" multiple="multiple" id="selectA" style="width:100px;height:160px"> <option value="1" >选项1</option> <option value="2" >选项2</option> <option value="3" >选项3</option> <option value="4" >选项4</option> <option value="5" >选项5</option> <option value="6" >选项6</option> <option value="7" >选项7</option> <option value="8" >选项8</option> </select> </div></td> <td width="14"><button id="rightAll" >>|</button><button id="right" >>></button></td> <td width="193" rowspan="2"><div align="left"> <select name="select2" multiple="multiple" id="selectB" style="width:100px;height:160px"> </select> </div></td> </tr> <tr> <td><button id="left" ><<</button><br /><button id="leftAll" >|<</button></td> </tr> </table>
0 0
- 左右列表框内容选择控件
- select列表左右选择框
- 左右列表选择数据移动
- 选择列表的左右拉动
- 列表框控件ListBox(选择类控件)
- 表格中用js左右添加从下拉列表中选择的内容
- jQuery中将左右两个列表框的内容相互移动
- jQuery实现select下拉框左右选择_交换内容
- 自定义左右按钮选择控件
- 低仿探探左右滑动选择控件
- 高级控件之列表选择框(Spinner)
- js实现左右列表内容交换传递
- 关于列表中内容的左右移动
- HTML下拉列表的左右选择
- js-案例:下拉列表左右选择分析
- 下拉列表的左右选择的实现
- 下拉列表左右选择(js代码)
- 左右选择框
- 在html中调用QQ,MSN,旺旺,Skype,Email的方法
- 在html中调出Flash,视.音频播放器的方法
- 导入csv文件时,如果最后一列没有数据,读取出来的集合比抬头字段少,和数据中包含","如何处理?
- 选择主菜单,自动全选子菜单的checkbox操作
- org.apache.struts2.json.JSONException: java.lang.reflect.InvocationTargetException异常解决
- 左右列表框内容选择控件
- 多级菜单
- 关于滑动冲突的解决方案
- Mybatis自增主键返回与非自增主键返回
- uniry3d(4)基类中的基础方法的调用顺序
- 让text不停往复的运动
- Quartz与Spring的整合使用
- 让text不停往复的运动,和上一个有区别
- IOS Xcode下载教程(各版本)