title: How to reset form validation after server side validation error?
body: <p>I have a from, in which users will fill a number that shall be unique, otherwise rails will respond on an error : "has already been taken"</p>
  
  <p>I am using <code>validates_uniqueness_of</code> at the model, so every thing is fine.</p>
  
  <p>The problem is that when the error message "has already been taken" appears, I can no more submit the form, even if I cleared the text box, it seems that the form validator get stuck ..</p>
  
  <p>I tried <code>$("#class_room_form").validate().resetForm();</code> but, it didn't work, I still can't submit the form ..</p>
  
  <p>Any idea ?</p>