I use Drag and Drop to sort the grid lines,
In this process, I want the order (sequence) of the dragged row to change dynamically, as if I was dragging the 3rd row to 1st place, I want it (order) to change to 1 dynamically.
I do not understand how to cyclically and dynamically change the order.
var SortedIDs = ""; $(".gvSortPorts").find("tbody > tr").each(function () { SortedIDs += $(this).attr("id") + "1"; });
Can someone help in providing an idea, I want this to be useful with jquery.
source share