title: Change cell value in a row based on others
body: <p>I have the following table with two columns and two inputs each:</p>
  
  <pre><code>&lt;table id="ASD" style="border:1px black solid"&gt;
  &lt;thead&gt;
  &lt;th&gt;Columna 1&lt;/th&gt;
  &lt;th&gt;Columna 2&lt;/th&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr name="1" style="border:1px black solid"&gt;
      &lt;td  style="border:1px black solid" &gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="1_1"&gt;
      &lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="1_1"&gt;&lt;/td&gt;
      &lt;td  style="border:1px black solid"&gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="1_1"&gt;
      &lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="1_1_2"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  
      &lt;tr name="2" style="border:1px black solid"&gt;
      &lt;td style="border:1px black solid"&gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="2_1"&gt;
      &lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="2_1"&gt;&lt;/td&gt;
      &lt;td style="border:1px black solid"&gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="2_2"&gt;
      &lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="2_2"&gt;&lt;/td&gt;
    &lt;/tr&gt;
      &lt;tr name="3"&gt;
      &lt;td style="border:1px black solid"&gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="3_1"&gt;&lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="3_1"&gt;&lt;/td&gt;
          &lt;td  style="border:1px black solid"&gt;&lt;label&gt;Sí&lt;/label&gt;&lt;input type="radio" class="c1s" name="3_2"&gt;&lt;label&gt;No&lt;/label&gt; &lt;input type="radio" class="c1n" name="3_2"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I would ike that if, I click 'Si' on the first cell, the second one becomses automatically marked.</p>
  
  <p>This is my JS so far, I am trying to do the following: When 'Si' is clicked in a row, find the closest TR and get the attribute name.
  Once I have the attr name, <strong>as its unique per row</strong>, I can simply locate the tr and go to the second cell, find the input of the class 'c1s' and set it to checked.</p>
  
  <p>The last part is the one I'm missing as I can't seem to retrieve the attr name from <code>&lt;tr&gt;</code>.</p>
  
  <pre><code>$(".c1s").click(function(){
  alert("Click Si");
  var id_col = $('#ASD').closest('tr').attr("name");
  console.log(id_col);
  alert(id_col)
  })
  </code></pre>
  
  <p><strong>FIDDLE</strong>:</p>
  
  <p><a href="https://jsfiddle.net/f7cqxyLy/1/" rel="nofollow noreferrer">https://jsfiddle.net/f7cqxyLy/1/</a></p>
  
  <p>Can anyone help out?</p>