[jQuery] Re: [validate] How to integrate validation with masking?

2008-06-19 Thread Jörn Zaefferer
Here is an example using both plugins: http://dev.jquery.com/view/trunk/plugins/validate/demo/marketo/ The second step changes the creditcard mask based on another field: http://dev.jquery.com/view/trunk/plugins/validate/demo/marketo/step2.htm Jörn On Wed, Jun 18, 2008 at 7:11 PM, shapper

[jQuery] Re: [validate] How to integrate validation with masking?

2008-06-19 Thread shapper
Hi, I know those examples and I kind of 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');

[jQuery] Re: [validate] How to integrate validation with masking?

2008-06-19 Thread shapper
Hi, I know those examples and I kind of 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');

[jQuery] Re: [validate] How to integrate validation with masking?

2008-06-19 Thread Asif R Naqvi
how to un-subscribe from this email group ?? - Original Message From: shapper [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, 19 June, 2008 5:18:03 PM Subject: [jQuery] Re: [validate] How to integrate validation with masking? Hi, I know those