That isn't a valid selector. Try this:

phone3:{required: "#phone1:filled", rangelength:[3,3],
digits:true},

(http://docs.jquery.com/Plugins/Validation/filled)

or:

phone3:{required: function() { return $("#phone1").val().length > 1;
}, rangelength:[3,3],
digits:true},

Jörn

On Tue, Dec 16, 2008 at 5:05 AM, IlyaE <ilyaelk...@gmail.com> wrote:
>
> I'm trying to use the dependency to make a field required only if a
> field is filled.
> I tried
> phone3:{required: "#phone1.val().length > 1", rangelength:[3,3],
> digits:true},
>
> but this did not seem to work. Any ideas?
> thanks
>

Reply via email to