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