[jQuery] [validate] adding a loading indicator for remote method

[jQuery] [validate] adding a loading indicator for remote method


I was wondering if anyone could help me/get me pointed in the right
direction with making a loading gif come up when I am validating a
username with ajax.
I tried changing the class, but nothing happens. I changed this in the
validate.js file:
remote: function(value, element, param) {
            var label = this.errorsFor( element );
            label.html(" ").removeClass().addClass( "loading" );
doesn't work though.
Thanks