一、展现结果
![](https://i-blog.csdnimg.cn/blog_migrate/e396266e6848fa8c26c229c07c05f7d9.png)
二、代码
1.HTML代码
<!DOCTYPE html>
<html>
<head>
<title>两个table左右移数据</title>
<meta charset="utf-8 text/html">
<script type="text/javascript" src="../../../lib/js/jquery/jquery.js"></script>
</head>
<body>
<div style="float: left;">
<div style="float: left;">
<label class="labelTitle">可选图书</label>
<div class="table-div">
<table>
<thead>
<tr>
<th>书籍名称</th>
<th>作者</th>
<th>类型</th>
</tr>
</thead>
<tbody id="selectTbodyId"></tbody>
</table>
</div>
</div>
<div style="width: 50px;height: 100px;margin-top: 100px;margin-left:10px;float: left;">
<div>
<input type="button" id="itemAddBtn" value=">>" />
</div>
<div style="margin-top: 30px;">
<input type="button" id="itemDelBtn" value="<<" />
</div>
</div>
<div style="float: left;">
<label class="labelTitle">已选图书</label>
<div class=" table-di