title: How to access old and new values before submitting with jeditable
body: <p>I have a field being updated by jeditable. I want to output a warning message before submitting updates if the value is being reduced (which would result in data being lost), but not if it's being increased.</p>
  
  <p>This seems a good candidate for jeditable's onsubmit function, which I can trigger happily. I can get the new value from $('input', this).val(), but how do I get the original value to which to compare it in this context?</p>
  
  <p>...</p>
  
  <p>Since posting the above explanation / question, I've come up with a solution of sorts. By changing the invokation in jquery.ready from</p>
  
  <pre><code>$('#foo').editable(...);
  </code></pre>
  
  <p>to</p>
  
  <pre><code>$('#foo').hover(function(){
    var old_value = $(this).text();
    $(this).editable('ajax.php', {
       submitdata {'old_value':old_value}
    });
  });
  </code></pre>
  
  <p>I can use settings.submitdata.old_value in the onsubmit method.</p>
  
  <p>But there surely has to be a better way? jeditable must still have the old value tucked away somewhere in order to be able to revert it. So the question becomes how can I access that from the onsubmit function?</p>
  
  <p>Many thanks in advance for any suggestions.</p>