You'd have to write a custom method for that. Or replace the value on
submit or something like that. The required-rule works with an empty
value.

Jörn

On Tue, May 26, 2009 at 3:22 PM, ciupaz <luigi.zambe...@gmail.com> wrote:
>
> Thank you Jorn, now with the "name" attribute it's working.
> A simple question.
> For business rules I have to give the value "-1" to the "Select the
> city" option.
> Like this:
>
> <select id="city" name="city">
>                    <option value="-1">Select a city</option>
>                    <option value="1">Milan</option>
>                    <option value="2">Turin</option>
>                    <option value="3">Rome</option>
>                    <option value="4">Venice</option>
> </select>
>
> How can I validate in this case?
>
> Luis

Reply via email to