I don’t know if this is possible, but I want to do a few things,
I have 2 sortable lists that are related. I do not want to sort the first list, but I need elements that can be dragged into the second list.
Here is my code
$(document).ready(function() {
$( "#webappsearchresults12267, #portfolio-ul" ).sortable({
helper: 'clone',
connectWith: ".connect",
scroll: false,
tolerance: 'intersect',
stop: function(){
var order = $("#portfolio-ul").sortable('toArray');
$("#CAT_Custom_196863").val(order);
}
})
});
<ul id="#webappsearchresults12267>
<li>item-1</li>
<li>item-2</li>
<li>item-3</li>
</ul>
<ul id="
<li>item-4</li>
<li>item-5</li>
<li>item-6</li>
</ul>
I also have the option of cloning an item that I take from the first list ... "helper:" clone "," doesn't seem to work for me,
Any ideas? Perhaps I am not considering a sortable solution to the list, but I am dragging it .. with a sort list for the second list.
Any ideas?
source
share