Title: textbox + validatebox to validate length Post by: catpaw on March 17, 2015, 07:54:56 PM hi, regards
before the document ready I have this: $.extend($.fn.validatebox.defaults.rules, { valLength: { validator: function(value, param){ return value.length == param[0]; }, message: 'Este campo requiere {0} caracteres.' } }); and the I try to use: <input name="usuario" class="easyui-textbox validatebox" style="width:100%;height:40px;padding:12px" data-options="prompt:'usuario',iconCls:'icon-man',iconWidth:38,required:true,validType:'valLength[5]'"> but nothing happens please help Title: Re: textbox + validatebox to validate length Post by: stworthy on March 18, 2015, 03:28:50 AM Please refer to this example http://jsfiddle.net/y3orxz5t/
Title: Re: textbox + validatebox to validate length Post by: catpaw on March 18, 2015, 07:08:42 AM thanks its work
my problem was this novalidate:true on the form :-[ |