select 左右多选 demo html
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/commons.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xxxxx</title>
</head>
<body>
<div class="title"><span>当前位置:xxxxxx>xxxxx>xxxxxx</span></div>
<form name="tmlgroupmember" method="post" >
<input type="hidden" name="muserTerminalgroup.terminalgrpidx" value="${muserTerminalgroup.terminalgrpidx}" />
<div class="editBlock">
<table class="table2" width="100%">
<tbody>
<tr>
<th>xxxxxx</th>
<td width="20%" >
<input type="text" value="${muserTerminalgroup.terminalgrpname}"
readonly="readonly" maxlength="30" style="border: none" id="groupname" />
</td>
</tr>
<tr>
<th width="90">xxxxxx</th>
<td colspan="5">
<select id="id_brand" class="width140p">
<option value="">--请选择--</option>
<s:iterator value="mtmlBrandList" id="bean" status="stat" var="v">
<option value="${brandindex}">${brandname}</option>
</s:iterator>
</select>
</td>
</tr>
<tr>
<th>xxxxxxx</th>
<td colspan="5">
<div style="width: 400px; padding: 2px">
<input name="terminalmodelname" type="text" id="id_terminalmodelname" class="inputText" />
<input type="button" id="query" value="查询" class="btns" />
<input type="button" id="clear" value="清空" class="btns" />
</div>
<table width="620" height="300">
<tr>
<td width="204" valign="top">
<select id="leftmodel" multiple="multiple" style="width: 250px; height: 300px" ondblclick="leftToRight();">
<s:iterator value="mtmlInfos" id="bean" status="stat" var="v">
<option value="${terminalindex}">${terminalmodelname}</option>
</s:iterator>
</select>
</td>
<td width="207" align=center style="width: 40px;">
<input type="button" value="> " title="选择单个" onClick="leftToRight();" class="inputButton" />
<br />
<br />
<input type="button" value=">>" title="全部选择" onClick="leftToRightAll();" class="inputButton" />
<br />
<br />
<br />
<br />
<br />
<input type="button" value="< " title="移除单个" onClick="rightToLeft();" class="inputButton" />
<br />
<br />
<input type="button" value="<<" title="全部移除" onClick="rightToLeftAll();" class="inputButton" />
</td>
<td width="204" valign="top">
<select name="rightmodel" id="rightmodel" multiple="multiple" style="width: 250px; height: 300px" ondblclick="rightToLeft();">
<s:iterator value="muserTerminalgroupExtendsList" var="v">
<option value="${terminalindex}">${terminalmodelname}</option>
</s:iterator>
</select>
</