PDA

View Full Version : AJAX form with certain letter and number combination


zeroge
01-16-2010, 11:16 PM
Hi

I tried to look up the net since two days and can't find a solution. I want a text field where the first input should be a L,Z, or F and the - with a pace - followed by 8 numbers.

Example: F-29820288

I tried imasking but no luck ... Would anyone know the formula?

Thanks

oesxyl
01-17-2010, 06:44 AM
Hi

I tried to look up the net since two days and can't find a solution. I want a text field where the first input should be a L,Z, or F and the - with a pace - followed by 8 numbers.

Example: F-29820288

I tried imasking but no luck ... Would anyone know the formula?

Thanks
try to use onchange event and a regex, For example:

^[LZF]-\d{8}$


best regards