Trying to add some custom .js validation (as per the above) on a front end form, but can’t get it to work. Where should this code go?
I’ve tried adding inline on the form page, and also as a separate script via wp_enqueue_scripts
action, but no joy?
Thanks!