Best How To:
Since you are dealing with the rendered page, I recommend you add client side validation using a standard validation library, such as the jQuery validation plugin:
jQuery Validation Plugin
It does what you are looking for, such as this sort of thing:

I've used this in CQ pages. Check out the video on that page--it gives a good demo of how to do just what you are looking for. And check out the demos page:
Demos
This isn't the only validation option, so you could also consider others. I think the key is to just approach this problem as a typical HTML/JavaScript need rather than a CQ need.
Also see Best JavaScript solution for client-side form validation and interaction?
No comments:
Post a Comment
If you have any doubts or questions, please let us know.