Something like this, assuming the textarea with name "myTextarea" and a checkbox with id "myCheckbox":
$("#myForm").validate({ rules: { myTextarea: { required: "#myCheckbox:checked" } } }); You can basically use any jQuery-selector as the expression. If it returns no elements, the element isn't be required, otherwise it is. Jörn On Mon, Oct 6, 2008 at 12:26 AM, Vic <[EMAIL PROTECTED]> wrote: > > Hello all, i have a question in regard to jquery validate plugin. i am > using an select control and for certain option value a user select , a > textarea control will appear on the form, and i need to validate this > textarea control. so i tried to use required(dependency-expression) to > check only when a certain value is selected, the textarea control is > set to required. i am not quite sure what to put in the "rules" > section to trigger the validation. > > Any help will be great, > > Thanks in advance. > > Vic >