我的代码在 firefox chrome safari Opera 中完美运行,但跨度排序在 ie 9 中不起作用这是我的代码
$(function() {
var lastRow = $("#<%=divChapters.ClientID%> tr:last").children("td:first").html();
$('#<%=divChapters.ClientID%> tbody').sortable({ opacity: 0.6,cursor: "move",handle: "span", update: function() {
var tableTdId = [];
$("table tbody tr:visible td:first-child").each(function(){
tableTdId.push($.trim($(this).text()));
});
var tableTdId = tableTdId.join(',');
var order = $('#<%=divChapters.ClientID%> tbody').sortable("serialize");
var App_Id = $("#<%= hfAppId.ClientID %>").val();
BlockUI();
CallServerMethod(tableTdId + "^" + lastRow + "^" + App_Id +"_UpdateChapterOrder", "");
}
});
<td class="chapterDeletetd"> <div style="text-align: right; padding-right: 13px; margin-bottom: 10px; padding-left:32px;"> <span class="spanSortable">Drag drop chapter to change order <img class="spanSortableImage" src="../Images/cursor.png"> </span> </div></td>