[jQuery] Re: Validation + Mask + Regex. Please, help me out. Thank You.

2008-06-19 Thread shapper
Please, anyone? Thank You, Miguel On Jun 18, 11:18 pm, shapper [EMAIL PROTECTED] wrote: Hello, I am using masking and client validation in a form using: Validator Plugin -http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Masked Input Plugin

[jQuery] Re: Validation + Mask + Regex. Please, help me out. Thank You.

2008-06-19 Thread shapper
Hi, I just solved it using: $.validator.addMethod('sqldatetime', function (value) { return /^([0-9]{4})-([0-1][0-9])-([0-3][0-9])\s([0-1][0-9]|[2][0-3]): ([0-5][0-9]):([0-5][0-9])$/.test(value); }, 'Check your date and time. Use the format -mm-dd hh:mm:ss'); I am not sure if this is the