Answer by Regent for Switch Positions of Tablerows only work once
As ASGM has already mentioned, problem is with otherTr. In this line:var otherTr = $("tr[data-position='"+ newPosition +"']").data("artikelid");I still don't know why this expression always returns...
View ArticleAnswer by ASGM for Switch Positions of Tablerows only work once
You can probably accomplish this with a lot less code (see jsfiddle):$(document).ready(function(){ $(".rowUp,.rowDown").click(function(){ var row = $(this).parents("tr:first"); if...
View ArticleSwitch Positions of Tablerows only work once
I have made a jsfiddleI have a table with articlepositions. And I would made it able that the User can change the position sort by clicking up or down arrows.But when I swap once the position, i could...
View Article