Custom methods are documented here:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod

Jörn

On Tue, May 26, 2009 at 3:49 PM, ciupaz <luigi.zambe...@gmail.com> wrote:
>
> Yes, exactly, and I'm trying this custom method:
>
> function GetCityValue() {
>        var value = $('#city').val();
>        if (value == -1) {
>          return true;
>        }
>        else {
>            return false;
>        }
> }
>
>
> and
>
> ......
> city: {
>                    required: GetCityValue()
>           },
>
> but does not working.
> Do you have ideas?
>
> Luis

Reply via email to