joomla3.0 - How to add custom validation code after validate.js -
I want to add a custom verification handler for Joomla's default client side verification class, e.g.
window.addEvent ('domready', function () {document.formvalidator.setHandler ('birth', function (value) {regex = / ^ \ d {4} - \ d { 2} - \ d {2} $ /; Recharge regex.test (value);});});
I want it in JS file for component. The problem I am facing is that the custom handler should be defined after the recognition class, so it needs to be shown later:
& lt; Script src = "/ media / system / js / validate js" type = "text / javascript" & gt; & Lt; / Script & gt;
I com_mycomponent / site / mycomponent.php
$ document-> but the announcement will appear before valid.js.
Thanks
then it should be the top of the page at the top
If you are adding window addEvent through the adspip,
The formvalidator runs the original events first, so if you want to If you want to say something before the need for the run of the run, then you are out of luck.
Comments
Post a Comment