When using jquery sortable, I am able to customize a placeholder inside a connected list specified in the connectWith
option to visualize where the content will be dropped. However, I am struggling to find a way to style the actual list that contains the placeholder.
Here is my code setup:
HTML:
<div class="sortable">
<div class="item"></div>
</div>
<div class="sortable"></div>
<div class="sortable"></div>
Javascript:
$(".sortable").sortable({
connectWith: ".sortable",
over: function(event, ui){
//add class .hover to list
},
change: function(event, ui) {
//style placeholder
ui.placeholder.css({
visibility: 'visible',
background: '#EEE'
});
}
});