How to Turn Zurb Foundation Exclude Live Testing?

Is there a way to disable direct confirmation of entries in the Zurb Foundation, so the check is only performed when the field is really left?

The docs point to the variable: live_validatebut setting it to falseseems inefficient. Also this is apparently never usedfoundation.abide.js

Also, it might be a good idea to set a specific field for active validation, rather than globally.

Any ideas?

+4
source share
1 answer

There seems to be no way to do this using live_validate. Indeed, this parameter is not even used inside Abide .

, timeout. , , , . timeout, , , .. , , .

, - :

/* 100 seconds until verifying the field to be validated */
$(document).foundation({abide: { timeout: 100000, patterns: { xxx: /^...$/ } }});

live_validate Abide Github. , . , Abide .

. . , live_validate zurb: master

+3

Source: https://habr.com/ru/post/1524262/


All Articles