我需要显示前一列数据的按钮,并显示消息框警告"您确定要填充该列吗?是或否"。另外,可以编辑复制数据。我希望你能帮助我。例如,在名称(column1)中的值为1000,因此在name2(column2)中,如果单击按钮,则只复制column1中的数据,即1000,如果用户想要更改该值,则可以对其进行编辑。 http://jsfiddle.net/hq2GG/5/
<table class="downpanel">
<thead>
<tr>
<th></th>
<th>Name<br><input type="button" class="previous"></th>
<th>Name2<br><input type="button" class="previous"></th>
<th></th>
<th colspan="2">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>