Submit a form with ajax

Hello mate, I was just wondering if you managed to find any time to have a quick look at that issue with the script?
I played around with that a little of course, but I didn’t get that far I’m afraid, as I’m not sure how we want to handle the errors
cheers

I’ve played around with the js a little, and managed to get rid of the error caused by

fields[i].fields

I’ve replaced this

$field.closest("span.error").html(fields[i].fields.join('<br>')).show();

with

$field.closest("span.error").html(fields.join('<br>')).show(); 

so now I don’t have the error anymore in the console
I logged fields console.log(fields); and got the errors OK (they display in the console as array elements), now it’s just a matter of add them to the relevant field, but I remember you said you thought that the whole thing had to be done differently? Are you still interested in the project?

Sponsor our Newsletter | Privacy Policy | Terms of Service