(function($){ $.fn.validationEngineLanguage = function(){ - TopicsExpress



          

(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { required: { // Add your regex rules here, you can take telephone as an example regex: none, alertText: * harus diisi, alertTextCheckboxMultiple: * Please select an option, alertTextCheckboxe: * This checkbox is required, alertTextDateRange: * Both date range fields are required }, requiredInFunction: { func: function(field, rules, i, options){ return (field.val() == test) ? true : false; }, alertText: * Field must equal test }, dateRange: { regex: none, alertText: * Invalid , alertText2: Date Range }, dateTimeRange: { regex: none, alertText: * Invalid , alertText2: Date Time Range }, minSize: { regex: none, alertText: * minimal , alertText2: karakter }, maxSize: { regex: none, alertText: * maksimal , alertText2: karakter yang diperbolehkan }, groupRequired: { regex: none, alertText: * You must fill one of the following fields, alertTextCheckboxMultiple: * Please select an option, alertTextCheckboxe: * This checkbox is required }, min: { regex: none, alertText: * Minimum value is }, max: { regex: none, alertText: * Maximum value is }, past: { regex: none, alertText: * minimal tahun yang diperbolehkan }, future: { regex: none, alertText: * maksimum tahun yang diperbolehkan }, maxCheckbox: { regex: none, alertText: * Maximum , alertText2: options allowed }, minCheckbox: { regex: none, alertText: * Please select , alertText2: options }, equals: { regex: none, alertText: * Fields do not match }, creditCard: { regex: none, alertText: * Invalid credit card number }, phone: { // credit: jquery.h5validate.js / orefalo regex: /^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/, alertText: * Invalid phone number }, email: { // HTML5 compatible email regex ( whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) regex: /^(([^()[\]\\.,;:\s@\]+(\.[^()[\]\\.,;:\s@\]+)*)|(\.+\))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, alertText: * diisi dengan format email yang falid },
Posted on: Wed, 03 Sep 2014 14:16:34 +0000

Trending Topics



Recently Viewed Topics




© 2015