From: Brian Tan Date: Thu, 31 Dec 2015 13:59:41 +0000 (-0500) Subject: Update abide.md X-Git-Tag: v6.1.2~119^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7725%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update abide.md --- diff --git a/docs/pages/abide.md b/docs/pages/abide.md index 6eddf56fb..f9fe63287 100644 --- a/docs/pages/abide.md +++ b/docs/pages/abide.md @@ -189,17 +189,17 @@ $(document) ev.preventDefault(); console.log("Submit for form id "+ev.target.id+" intercepted"); }); - // You can bind field or form event selectively - $("#foo").bind("invalid.zf.abide", function(ev,el) { - alert("Input field foo is invalid"); - }); - $("#bar").bind("formvalid.zf.abide", function(ev,frm) { - alert("Form is valid, finally!"); - // do something perhaps - }); +// You can bind field or form event selectively +$("#foo").bind("invalid.zf.abide", function(ev,el) { + alert("Input field foo is invalid"); +}); +$("#bar").bind("formvalid.zf.abide", function(ev,frm) { + alert("Form is valid, finally!"); + // do something perhaps +}); ``` ## Adding Custom Pattern and Validator -* Override supplied patterns and validators before foundation is initialized +* Override builtin patterns and validators before foundation is initialized * Add new patterns and validators before or after foundation is initialized ```javascript