[jQuery] New to Jquery, have written Validation script...
Hello,
I have never written a Jquery script, but have, over the last few
days, compiled the following, but was hoping someone could look over
this to see if I had problems.
$(document).ready(function () {
$("#my-form input[@type='input']").blur(function() {
var queryString = $.("#my-form").formSerialize();
$.post("/path/to/your/validation.php", queryString,
function(validation_errors) {
// do something like changing a css class, disable submit...
$.each(validation_errors, function(err_id, err_message) {
$(err_id).val() = err_message;
}
)};
});
)});
Thanks,
Nishan