I'm assuming you're using Ajax to submit your form here. I'm sure your script is loaded when the document itself loads and that's when it gets applied to your form markup. When you submit the form via Ajax, the parent page/document itself does NOT get reloaded, so the script doesn't get re-applied.
You can drop the Ajax submission method and it should work for you then. If you're married to that, I'm not sure if we have a filter that will enable you to re-fire a script on a validation error or not. I do know that we have one to do just that for each page of a multi-page form but not sure about this scenario.
I've asked one of our programmers to follow up on this to be sure and post back here with his thoughts later.
Posted 8 years ago on Friday September 9, 2011 | Permalink