Created
July 1, 2010 18:14
-
-
Save mhayes/460325 to your computer and use it in GitHub Desktop.
Use to collect sort position from jqueryUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$(".multiselect").multiselect(); | |
$('#sortFields').sortable({ | |
update:function(event,ui) { | |
var arr = $('#sortFields').sortable('toArray'); | |
var newVal = ""; | |
for(i=1; i<arr.length; i++) { newVal += arr[i] + ","; } | |
$('#sortOrderIds').val(newVal); | |
} | |
}); | |
$('#sortFields').disableSelection(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment