我需要另一個name2列,其中有一個按鈕(全部複製),一旦你點擊一個對話框就會出現「你確定要複製|是/否」。它會將名稱中的數據克隆到name2。克隆第1列到第2列使用按鈕
<table class="downpanel">
<thead>
<tr>
<th></th>
<th>Name</th>
<th></th>
<th>Name2</th>
<th></th>
<th colspan="">Count</th>
<th></th>
<th>Unit</th>
<th></th>
<th>Category</th>
<th></th>
<th>Data1</th>
<th></th>
<th>Data2</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="button" class="copyall">
</td>
<td>
<input type="text" size="25" name="name">
</td>
<td>
<input type="text" size="25" name="name2">
</td>
<td>
<input type="button" class="copy">
</td>
<td>
<input type="text" size="3" name="from">
</td>
<td>
<input type="text" size="3" name="to">
</td>
<td>
<input type="button" class="copy">
</td>
<td>
<select name="unit" style="width: 75px;">
<option value="blah">blah</option>
</select>
<br />
</td>
<td>
<input type="button" class="copy">
</td>
<td>
<select name="category" style="width: 275px;">
<option value="blah">blah</option>
</select>
<br />
</td>
<td>
<input type="button" class="copy">
</td>
<td>
<input type="text" size="10" id="datepicker" name="data1">
</td>
<td>
<input type="button" class="copy">
</td>
<td>
<input type="text" size="7" name="data2">
</td>
<td>
<input type="button" class="copy">
</td>
</tr>
</tbody>
</table>
http://jsfiddle.net/jakecigar/hq2GG/2/
你的意思是所有的領域一一 – Ranjith
添加新行不,我的意思是在「NAME2」列有是一個按鈕,一旦你點擊它。它會克隆/複製「name」列中的所有數據。我已經做到了,但它每行復制。現在我需要一個按鈕,每列將複製以前的數據列在前:如果今天的日期是6月16日(col1)在6月17日(col2)有一個按鈕來複制col1中的數據。如果你有另一個6月18日(col3),它會像這樣複製col2中的數據。我希望你能得到我的觀點 – Hans