Re: [jQuery] Re: How to keep two items having the same value

2009-11-09 Thread Charlie Griefer
On Mon, Nov 9, 2009 at 4:06 PM, Dave Methvin wrote: > > > What I want is: When the user choose an item from the number1 > > , the number2 will automatically change to the same > > value to the number2. > > Maybe something like this? > > $("select[name=number1]").change(function(){ > $("select[na

[jQuery] Re: How to keep two items having the same value

2009-11-09 Thread Dave Methvin
> What I want is: When the user choose an item from the number1 > , the number2 will automatically change to the same > value to the number2. Maybe something like this? $("select[name=number1]").change(function(){ $("select[name=number2]").val( $(this).val() ); }); If the change even