二 、JQUERY实现左右权限的选择范例
代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script src="scripts/jquery-1.7.1.min.js"></script>
<script>
$(function () {
$("#btnright").click(function () {
$('#selectleft option:selected').appendTo('#selectright');
});
$('#btnleft').click(function () {
$('#selectleft').append($('#selectright option:selected'));
});
$('#btnleftall').click(function () {
$('#selectleft').append($('#selectright option'));
});
$('#btnrightall').click(function () {
$('#selectleft option:selected').appendTo('#selectright');
});
});
</script>
<meta charset="utf-8" />
</head>
<body>
<select multiple='True' id="selectleft">
<option>北京</option>
<option>广州</option>
<option>深圳</option>
<option>上海</option>
<option>太原</option>
</select>
<input type="button" id="btnleft" value="<"/>
<input type="button" id="btnright" value=">" />
<input type="button" id="btnleftall" value="<<" />
<input type="button" id="btnrightall" value=">>" />
<select multiple="True" id="selectright"></select>
</body>
</html>
效果图:
- 用jquery实现可以左右选择的菜单效果
- jQuery插件实现select下拉框左右选择_交换内容(multiselect2side) 的一些网站 (有时间整理)
- jQuery实现select下拉框左右选择_交换内容
- jQuery实现商品的左右选择
- 左右select选择 (jQuery实现)
- jquery实现select选择框内容左右移动代码分享
- 基于jquery实现select选择框内容左右移动添加删除代码分享
- Jquery实现下拉列表左右选择
- jquery实现下拉框左右选择功能
- JQuery实现带排序功能的权限选择实例
- Jquery实现角色左右选择特效
- jQuery实现 注册时选择阅读条款 左右移动
- jQuery插件实现select下拉框左右选择_交换内容(multiselect2side)
- jquery实现select选择框内容左右移动代码分享
- jquery实现下拉框左右选择的效果
- jQuery实现下拉框左右选择的简单实例
- Jquery实现的角色左右选择特效
- jquery 实现左右选择
- jQuery实现下拉框左右选择的简单实例
- jQuery实现 注册时选择阅读条款 左右移动