jQuery / Spry Validation / Problem
Posted
by samuel baldus
on Stack Overflow
See other posts from Stack Overflow
or by samuel baldus
Published on 2010-03-17T12:23:00Z
Indexed on
2010/04/29
21:27 UTC
Read the original article
Hit count: 456
Hi Chaps, I have a PHP form with one input and a button. A jQuery script ('loading' animated gif) is triggered on the click of the submit button. I also have a Spry Validation field linked to the input. At the moment, if the validation is triggered, the animated gif continues and won't stop. The furthest I've managed to get with it, is to click the validation message to stop the animation, but what I'm really after is to stop the animation when the validation is visible/triggered, but I can't find a suitable Event.
$(function() {
$("#button_download")
.click(function() {
})
.throbber();
$("#sprytextfield1")
.click(function(sprytextfield1) {
$.throbberHide();
})
});
If someone can point me in the right direction, that would be sweet.
© Stack Overflow or respective owner