请求高手帮助实现这个效果(两个select框之间的相互操作)?
选中左边框中的一个人名点击添加按钮到右边的框中(双击该人名也可实现),反之,
选中右边框中的一个人名点击去除按钮到左边的框中(双击该人名也可实现),最后,
点击确定按钮alert出右边框中的值,并且用逗号分开(如3,2)
<form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><select name="left" size="10">
<option value="1">张三</option>
<option value="2">李四</option>
<option value="3">王二</option>
</select></td>
<td><input type="button" value="添加>>"> <br> <input type="button" value="<<去除"></td>
<td><select name="right" size="10">
</select></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input type="button" value="确定">
<input type="reset" value="重置">
</div></td>
</tr>
</table>
</form>