jQuery可排序表集元素,将用于排序

时间:2019-02-20 16:09:04

标签: javascript jquery jquery-ui-sortable

我有桌子,需要排序行。 我的js:

$("#all_invoice_table tbody").sortable({
            cancel: ".notsortable",
 ....

但是现在用鼠标我可以移动整行,这是错误的(我也不能从表中复制任何文本)我在表中有td:

<td><img class="sortInvoiceIcon" src="/images/icons/sort_icon.png"></td>

如何定义仅使用具有.sortInvoiceIcon类的图像进行排序?

0 个答案:

没有答案
相关问题