jQuery Validation Plugin

The standard formtool library leverages Jörn Zaefferer's jQuery Validation Plugin. The basic method is to attach to the form's onsubmit event, read out all the form elements' classes and perform validation if required. If a field fails validation, reveal field validation advice and prevent the form from submitting.

You can register and load the javascript file when you want to use it.

<skin:registerJS 	id="jquery-validate-additional"
					baseHREF="#application.url.webtop#/thirdparty/jquery-validate"
					lFiles="additional-methods.js"
					bCombine="false" /> <!--- Combine doesn't work. Seems to have a problem with the regex.  --->
<skin:loadJS id="jquery-validate-additional" />

Open core/webtop/thirdparty/jquery-validate/additional-methods.js to see all documented validation functions.