Get receiver element's id for dragable elements
I want to use .css() to restyle list elements, i have 4 lists, they are connected.
But i need to know where element dropped. I can read where it comes from with this code; ui.sender.attr('id')
How can i now where it dropped?
This is the code if it's necessary;
- $(function() {
- $("#sol, #sag, #orta, #deaktif").sortable({
- opacity: 0.6,
- connectWith: '.bagla',
- scroll: false,
-
- receive: function(event, ui) {
- var ComeID = ui.sender.attr('id');
- alert(ComeID); //just for test
- }
- }).disableSelection();
- });