I am using Drag and Drop for sorting rows of grid,
In this process i want Order(Sequence) of dragged row to be changed dynamically like if i drag 3rd row to 1st place i want it(order) to change to 1 dynamically.
I am not getting any idea of how to loop and change order dynamically.
var SortedIDs = "";
$(".gvSortPorts").find("tbody > tr").each(function () {
SortedIDs += $(this).attr("id") + "1";
});
Can any one please help in giving idea, i want it acheive using jquery.