Validation plugin - regular expressions or condition
Hi,
I´ve problem with Validation plugin... I´ve one select like this..
- <select>
- <option value=1>-- Select one --</option>
- <option value=2>opt 1</option>
- <option value=3>opt 2</option>
- <option value=4>opt 3</option>
- </select>
and I want to return false if there is chosen value == 1 (-- Select one --).
Next problem is with the right phone number format.. I have a PHP regular expression, but I don´t know how to insert this regExp into JS.
Thanks for all answers..