Hello,
I have one more question about this,
I want to know if could override the default remote function creating
another function that calls a $.ajax with method POST and has effects
fadeIn() and fadeOut() when validating a INPUT.
For example:
remote: function(value, element,
param) {
$.ajax({
type: "POST",
url: "/sys/check-
email.php",
dataType: "json",
data: "email=" + $
("#EMAIL").val(),
beforeSend: function()
{
$("#load-
email").fadeIn();
},
success:
function(result) {
$("#load-
email").fadeOut();
return result;
}
);
But this function is not working how I expect. The effects works
properly but I can still submit the form if the e-mail is not valid.
Any suggestions is welcome.
Thanks,
Lino