Use the invalidHandler function.
$('#change-form')
.jqTransform()
.validate({
invalidHandler: function(form, validator) {
$("#loading").hide();
},
submitHandler: function(form) {
$(form).ajaxSubmit({
success: function() {
*From jQuery site:
Note:* In jQuery 1.3 [...@attr] style selectors were removed (they were
previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your
selectors in order to make them work again.
Remove the @ from your code to make work. ([Exception... "'Syntax error,
unrecognized
Prepend insert content inside the matched element at the beginning.
Before insert content before the matched element
On Mon, Mar 9, 2009 at 14:36, mwalsh wrote:
>
> Hi,
>
> I'm puzzled why this script works:
>
> $('.toggle').prepend('Collapse').click
> (function() {
>alert('toggle');
>