views:

23

answers:

0

I can't get jQuery client validator work with disable_with option,

<form>
   <input id="album_title" name="album[title]" required="required" type="text" />
   <input class="create" data-disable-with="Submitting ..." id="album_submit" name="commit" type="submit" value="Create Album" />
</form>

While I try to submit the form with blank "album_title", it will display an error message besides the input field, and the commit button also disabled with "Submitting ...", I can never get the button back to "enabled" state unless I refresh the page. Any idea?