title: how to revert position of a jquery UI draggable based on condition
body: <p>I have an element which is draggable and an element which is droppable. Once the dragged item is dropped on the dropzone I am trying to execute the following jquery psuedo code:</p>
  
  <pre><code>if(draggedelement == value){
  
  $(draggedelement).hide();
  
  }
  else{
  
  $(draggedelement).revert();
  
  }
  </code></pre>
  
  <p>where the <code>revert()</code> function moves the dragged item back to its original postion. </p>
  
  <p><strong>How would one accomplish this?</strong></p>
  
  <p>P.S. I am aware of the draggable 'revert' option, however this only activates if the dragged item does not make it to the dropzone.</p>