Código HTML:
html> <head> <script type="text/javascript"> function cambiar(obj) { for (i=0; ele=obj.form.elements[i]; i++) if(ele.type=='select-one') ele.selectedIndex = obj.selectedIndex; }
Código PHP:
echo"<select name='oportunidad_$indice' size='1' onchange='cambiar(this)'>";
echo"<option value='Ordinario'>Ordinario</option>";
echo"<option value='Regularizacion'>Regularización</option>";
echo"<option value='Extraordinario'>Extraordinario</option>";
echo"<option value='Global'>Global</option>";
echo"<option value='Especial'>Especial</option>";
echo"</select>";
echo "</td>";
echo "<td align='center'>";
echo " ";
echo"<select name='uni_$indice' size='1'>";
echo"<option value='1'>1</option>";
echo"<option value='2'>2</option>";
echo"<option value='3'>3</option>";
echo"<option value='4'>4</option>";
echo"<option value='5'>5</option>";
echo"<option value='6'>6</option>";
echo"<option value='7'>7</option>";
echo"<option value='8'>8</option>";
echo"<option value='9'>9</option>";
echo"<option value='10'>10</option>";
echo"<option value='11'>11</option>";
echo"<option value='12'>12</option>";
echo"<option value='13'>10</option>";
echo"<option value='14'>14</option>";
echo"<option value='15'>15</option>";
echo"</select>";