guys! I have a problem. I need to initialize my sortable() with items 'li:not(.someclass)'. If I set:
$('ul').sortable({ items: 'li:not(.someclass)' });
everything works fine. But if I try:
$('ul').sortable().sortable('option', 'items', 'li:not(.someclass)');
It doesn't work. Why option 'items' exists if it doesn't work correctly or what is correct way to set up items through options?
Try examples here.