english/libraries/joomla/html/html/behavior.php
/**
	 * Add unobtrusive javascript support for form validation.
	 *
	 * To enable form validation the form tag must have class="form-validate".
	 * Each field that needs to be validated need to have class="validate".
	 * Additional handlers can be added to the handler for username, password,
	 * numeric and email. To use these add class="validate-email" and so on.
	 *
	 * @return  void
	 * @since   11.1
	 */
Add unobtrusive javascript support for form validation.
To enable form validation the form tag must have class="form-validate".
Each field that needs to be validated need to have class="validate".
Additional handlers can be added to the handler for username, password,
numeric and email. To use these add class="validate-email" and so on.


Add unobtrusive javascript support for form validation . To enable form validation the form tag must have class = " form - validate " . Each field that needs to be validated need to have class = " validate " . Additional handlers can be added to the handler for username password numeric and email . To use these add class = " validate - email " and so on .
public static function formvalidation()
	{
		static $loaded = false;
		if ($loaded) {
			return;
		}
		self::framework();
		$uncompressed = JFactory::getConfig()->get('debug') ? '-uncompressed' : '';
		JHtml::_('script', 'system/validate'.$uncompressed.'.js', true, true);
		$loaded = true;
	}
public static function formvalidation ( ) { static $ loaded = false ; if ( $ loaded ) { return ; } self :: framework ( ) ; $ uncompressed = JFactory :: getConfig ( ) -> get ( 'debug' ) ? '-uncompressed' : '' ; JHtml :: _ ( 'script' , 'system/validate' . $ uncompressed . '.js' , true , true ) ; $ loaded = true ; }
Add unobtrusive javascript support for form validation.
Add unobtrusive javascript support for form validation .
// Only load once // Include MooTools framework