2011-08-14 42 views
2

我想拖动一个左侧面板的div,并将其放到右侧面板使用jquery sortable(interface.js)..我试过了,但无法解决...下面jquery拖放不同的div和div类之间的排序

$(document).ready(
      function() 
      { 
       $('div#block-selector').Sortable(
        { 
         accept: 'new-component', 
         helperclass: 'sortHelper', 
         activeclass : 'sortableactive', 
         hoverclass : 'sortablehover', 
         handle: 'span', 
         tolerance: 'pointer', 
         connectWith: '#droppableArea', 
         containment: 'div#droppableArea', 
         onChange : function(ser) 
         { 

         }, 
         onStart : function() 
         { 
          $.iAutoscroller.start(this, document.getElementsByTagName('body')); 
         }, 
         onStop : function() 
         { 

          $.iAutoscroller.stop(); 
         } 
        } 
       ); 
      } 

     ); 

DIV#块的选择

代码给出的左侧面板的DIV拖放到div的右侧面板中的#droppableArea ..但没有工作..请帮助meeeeeee

关注

wahid

回答