Tengo una tabla con dos sombras, (Al seleccionar la letra M del primer menú desplegable — le da a Moscú) con la función ‘cambiar’. Pero esto funciona solo para la primera fila, no para la segunda. Qué cambios se deben hacer para que funcione en la segunda fila

$(function() { $("#select1").change(function() { $("#select2").val($(this).val()); }); }); 
  {amp}lt;table{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select id="select1"{amp}gt; {amp}lt;option{amp}gt;1day{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Letter M{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;3day{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select id="select2"{amp}gt; {amp}lt;option{amp}gt;Tokyo{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Moscow{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;Berlin{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;/tr{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;th{amp}gt; {amp}lt;select{amp}gt; {amp}lt;option{amp}gt;1day{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Letter M{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;3day{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select{amp}gt; {amp}lt;option{amp}gt;Tokyo{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Moscow{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;Berlin{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;/tr{amp}gt; 
  $(function() { $("#select1").change(function() { $("#select2").val($(this).val()); }); $("#select3").change(function() { $("#select4").val($(this).val()); }); }); 
  {amp}lt;table{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select id="select1"{amp}gt; {amp}lt;option{amp}gt;1day{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Letter M{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;3day{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select id="select2"{amp}gt; {amp}lt;option{amp}gt;Tokyo{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Moscow{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;Berlin{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;/tr{amp}gt; {amp}lt;tr{amp}gt; {amp}lt;th{amp}gt; {amp}lt;select id="select3"{amp}gt; {amp}lt;option{amp}gt;1day{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Letter M{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;3day{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;th{amp}gt;{amp}lt;select id="select4"{amp}gt; {amp}lt;option{amp}gt;Tokyo{amp}lt;/option{amp}gt; {amp}lt;option value="1"{amp}gt;Moscow{amp}lt;/option{amp}gt; {amp}lt;option{amp}gt;Berlin{amp}lt;/option{amp}gt; {amp}lt;/select{amp}gt;{amp}lt;/th{amp}gt; {amp}lt;/tr{amp}gt;