title: How to validate xeditable inputbox
body: <p>I am using xeditable to have inline editable functionality, but now I am stuck trying to validate my input.</p>
  
  <p>Here is an example using <a href="http://jsfiddle.net/NfPcH/93/" rel="nofollow">jsFiddle</a></p>
  
  <p>I tried the below code with no success.</p>
  
  <pre><code>validate: function(value) {
    if($.trim(value) == '') 
      return 'This field is required';
  }
  </code></pre>