2

I am using Table Drag and Drop JQuery plugin (http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/).

I have a button that initializes sorting. But, after sorting is done, I want to deinitialize it, so user can continue with other tasks. How to deinitialise sort, or disable it, after initialization?

Btw, initialization code is:

$('table.listing').tableDnD({
    onDrop: function(table, row) {
    ... serialization of data and ajax post here...
    }                
}); 
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Marko
  • 213
  • 2
  • 8

1 Answers1

0

Try using function

 unbind().

See this

 $("table").unbind("mousedown");

Hope this helps.

Mukesh Ram
  • 6,248
  • 4
  • 19
  • 37