What is happening in below jQuery code ?
$("#myDiv").val($(".cssValue").sortable('serialize',{expression: 'textExp[#]'}));
I understand its enabling sortable on a css value within a div, I’m open to correction on this.
I’m confused about this section:
'serialize',{expression: 'textExp[#]'}
.sortable('serialize',{expression: 'textExp[#]'})is actually the jQuery UI syntax for invoking a method on a previously instantiated jQuery UI widget. That is to say, this line isn’t actually making.cssValuesortable – that was done at a previous point in time. This command simply serializes the element.Here’s a full run down: