Using Regular Expression In Ext Js Vtype
I have a regular expression for checking numbers and allowing '-' (Hyphen) Text Field. var regex = /^\d+-\d{1,2}$/; //Checks 'digits-digit(s,1 or 2)' This works ok for regular HT
Solution 1:
Works fine for me. Is the validation itself not working (the field doesn't get underlined when you type invalid stuff in it) or are you missing the error-tooltip? On the latter case add somewhere in your code:
Ext.QuickTips.init();
Otherwise the tooltips wont appear.
Post a Comment for "Using Regular Expression In Ext Js Vtype"