I’m validating a form with the jquery validation plugin. I’m checking if a given username is already in db with the remote option. everything works like expected but I want to show a loading gif while the validation script is requesting the server. Is there an easy way to accomplish this or do I need to edit the plugin js file? anyways, here is the representative code..
rules: {
user_name: {
alfanum:true,//custom method to check if alphanumeric
required: true,
minlength: 5,
remote: {url: "checkuser_custom.php",type:"GET",data:{cmd:"check"}}
}}
So basically I want to display an ajax loading gif during readystate 2
any help appreciated!
According to http://docs.jquery.com/Plugins/Validation/Methods/remote the remote param is a full jQuery.ajax settings object. See http://api.jquery.com/jQuery.ajax for implementation details.