[jQuery] Re: Validate textbox on option selected value

2009-05-21 Thread ciupaz
A little adding: if I'd like to make required if the selected index is *both* 1 and 2 (for example), how can I make it? Luigi

[jQuery] Re: Validate textbox on option selected value

2009-05-21 Thread ciupaz
It's working in that way Jorn. Thanks a lot. Luigi

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus
Are you using the validation plugin? On 18 maio, 07:33, Jörn Zaefferer wrote: > Try this (untested): > > required: "#viaFornitura[selectedIndex=1]" > > Jörn > > On Mon, May 18, 2009 at 12:13 PM, ciupaz wrote: > > > How can I make this Jorn? > > > Luigi > > > On May 18, 10:42 am, Jörn Zaefferer

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus
Are you using the validation plugin? On 18 maio, 07:33, Jörn Zaefferer wrote: > Try this (untested): > > required: "#viaFornitura[selectedIndex=1]" > > Jörn > > On Mon, May 18, 2009 at 12:13 PM, ciupaz wrote: > > > How can I make this Jorn? > > > Luigi > > > On May 18, 10:42 am, Jörn Zaefferer

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread matheus
Are you using the validation plugin? On 18 maio, 05:33, ciupaz wrote: > Hi all, > I have this validate code to validate a textbox if the user select a > combo value: > > > >     $(document).ready(function() { >                 $("form#2form").validate({ >                 rules: { >            

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread Jörn Zaefferer
Try this (untested): required: "#viaFornitura[selectedIndex=1]" Jörn On Mon, May 18, 2009 at 12:13 PM, ciupaz wrote: > > How can I make this Jorn? > > Luigi > > On May 18, 10:42 am, Jörn Zaefferer > wrote: >> select-options don't have a checked property. You have to fix the >> selector "#Altr

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread ciupaz
How can I make this Jorn? Luigi On May 18, 10:42 am, Jörn Zaefferer wrote: > select-options don't have a checked property. You have to fix the > selector "#AltraVia:checked". > > Jörn > > > > On Mon, May 18, 2009 at 10:33 AM, ciupaz wrote: > > > Hi all, > > I have this validate code to validat

[jQuery] Re: Validate textbox on option selected value

2009-05-18 Thread Jörn Zaefferer
select-options don't have a checked property. You have to fix the selector "#AltraVia:checked". Jörn On Mon, May 18, 2009 at 10:33 AM, ciupaz wrote: > > Hi all, > I have this validate code to validate a textbox if the user select a > combo value: > > > >    $(document).ready(function() { >