sorting - The jQuery plugin, asmSelect, doesn't retain sort order -
Therefore, I am using a plugin to create a list, but to use it to edit the current list I am also trying. AsmSelect allows you to manually sort / organize the selected options before submitting
My problem whenever I go and grab the user sorted list from the database and asmSelect your page By default (because it is a multiple selection), it only commands the selected options in any order, the original option appears in the selection. Therefore, do not keep my ordered order at all ...
Has anyone even seen this issue and has done a solution?
I have tried to create a list selected from the database in the beginning. I end-up asmselect update
& lt; Select ID = "Available Items" class = "Multicolored" name = "menuDishes" multiple = "multiple" title = "select item" & gt; & Lt; C: forEach var = "item" item = "$ {myAvailableItems}" & gt; & Lt; Option value = "$ {item.id}" data-sortB = "$ {FN: indexoff (my chosen item, item name)}" in $ {FN: (my chosen item, item.name) ? 'Selected =' selected '': ''}} $ {Item.name} & lt; / Options & gt; & Lt; / C: foreach & gt; & Lt; / Select & gt;
Comments
Post a Comment