title: jQuery UI Sortable items not working
body: <p>I'm trying to create a table with sortable rows with jQuery UI. I already have this working, but I intend on only sort some rows (not all of them) based on a checkbox.</p>
  
  <p>I uploaded the code to <a href="http://jsfiddle.net/detesto/7Tcgc/3/" rel="nofollow">http://jsfiddle.net/detesto/7Tcgc/3/</a></p>
  
  <p>When the checkbox changes, I add or remove the class that should trigger the sortable row. The problem is that when it is removed, it doesn't work as expected.</p>
  
  <p>I also tried doing a refresh on the sortble <code>$("#selector").sortable("refresh");</code> but this doesn't work for me either.</p>
  
  <p>I have it working by cancelling the event if the user drags a non-valid row, but I would like to prevent this altogether.</p>
  
  <p>Can this be prevented?</p>
  
  <p>Thanks in advance.</p>