thank you: but this only set the selected value, and not the set the
selected index

On 19 Nov, 19:19, aquaone <[EMAIL PROTECTED]> wrote:
> $("select").val(value); // for simple select
> $("select").val([value1,value2]); // for select multiple
>
> stephen
>
> On Wed, Nov 19, 2008 at 10:15, Andrea - Aosta <[EMAIL PROTECTED]> wrote:
>
>
>
> > i Have this traditional style js script
>
> > function Select_Value_Set(SelectName, Value) {
> >  eval('SelectObject = document.' +  SelectName + ';');
> >  for(index = 0;  index < SelectObject.length;    index++) {
> >   if(SelectObject[index].value == Value)
> >     SelectObject.selectedIndex = index;
> >   }
> > }
>
> > simply set the index of a select  to value choosed.
> > In jquery it is possible to do this? How? Thank you

Reply via email to