-1
我的HTML:jQuery UI的排序範圍和嵌套排序
<div class="demo">
<div id="sortable" class="ui-state-default">
<div id = "draggable1" class="">Home</div>
<div id = "draggable2" class="">Contact Us</div>
<div id = "draggable3" class="">
<table id='srtTable'>
<tr>
<td>tbl1</td>
<td>tbl2</td>
<td>tbl3</td>
<td>tbl4</td>
</tr>
</table>
FAQs</div>
<div id = "draggable5" class="Test">Test1</div>
<div id = "draggable6" class="Test">Test2</div>
<div id = "draggable7" class="Test">
<table id='srtTable1'>
<tr>
<td>tbl1</td>
<td>tbl2</td>
<td>tbl3</td>
<td>tbl4</td>
</tr>
</table>
Test3</div>
</div>
</div>
和jQuery:
$("#sortable").sortable({
items: ":not(#draggable3,#draggable7)"
});
$("Table tr td").sortable({
connectWith:'#' + $(this).parents().find(table).attr('id')
});
但td
正在排序table.How以外的限制td
排序表內的範圍是什麼?
爲什麼投票我的錯誤是什麼? –