title: How to use(repeats) radio button in a table td which is repeate in every row
body: <p>I have a table with number of rows and in a table there is a radio button, the radio button is repeated but its not work, i can't change my dropdown_list  name also, so how to overcome this problem please help me.</p>
  
  <pre><code>&lt;script&gt;
  $('input[name="radio_enable"]').on('click', function() {
      if ($(this).val() === 'true') {
          $('#item_dropdown_list').removeProp("disabled");
      }
      else {
          $('#item_dropdown_list').prop("disabled", "disabled");
      }
  });disabled
  &lt;/script&gt;
  
  &lt;html&gt;
  
   &lt;table border="1"&gt;
   &lt;thead&gt;
      &lt;h3 align="center"&gt;Selected Rule&lt;/h3&gt;
          &lt;tr&gt;
              &lt;th data-field="id" width="25"&gt; ID &lt;/th&gt;
              &lt;th data-field="details" width="20"&gt; RuleName &lt;/th&gt;
              &lt;th data-field="repeats" width="100"&gt; Repeats &lt;/th&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>    </p>
  
  <pre><code>        &lt;tbody&gt;
              &lt;c:forEach items="${List2}" var="as"&gt;
              &lt;tr&gt;
                  &lt;td&gt; ${as.rule.id}&lt;/td&gt;
                  &lt;td&gt; ${as.rule.ruleName}"&lt;/td&gt;
  
                  &lt;td&gt;&lt;input type="radio" data-select="#item_dropdown_list1" name="radio_enable1" value="true"&gt;
                          &lt;select id="item_dropdown_list1" name="item[dropdown_list]" disabled="disabled" name="ruleList[].repeats" style="width: 80px;"&gt;
  
                              &lt;c:forEach items="${listfrequency}" var="freq"&gt;
                                  &lt;option value="${freq.frequencyName}" /&gt;
                                  &lt;c:out value="${freq.frequencyName}" /&gt;
                              &lt;/c:forEach&gt;
                          &lt;/select&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;   
              &lt;/c:forEach&gt;    
          &lt;/tbody&gt;
  
  &lt;/table&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Edited(generated Html)</p>
  
  <pre><code>&lt;html&gt;
  &lt;script&gt;
  $('input[type="radio"]').on('click', function() {
      var val = $(this).val(),
          selectId = $(this).closest('tr').find('select');
      if ($(this).val() === 'true') {
          $(selectId).prop("disabled", false);
      }
      else {
          $(selectId).prop("disabled", true);
      }
  });
  &lt;/script&gt;
      &lt;div&gt;
          &lt;form id="ruleListForm" action="/update" method="post"&gt;
              &lt;table border="1"&gt;
                  &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th data-field="id"&gt; ID &lt;/th&gt;
                          &lt;th data-field="ruleName" &gt; RuleName &lt;/th&gt;
                          &lt;th data-field="fixed" &gt; Fixed &lt;/th&gt;
                          &lt;th data-field="repeats" &gt; Repeats &lt;/th&gt;
                          &lt;th data-field="parameter" &gt;Parameter&amp;nbsp;&amp;nbsp; Value &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;overwrite&amp;nbsp;&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody id="ruleListContainer"&gt;
                      &lt;tr class="rule"&gt;
                              &lt;td&gt;&lt;input type="hidden" name="ruleList[0].id" value="2" /&gt; 2&lt;/td&gt;
                              &lt;td&gt;&lt;input type="hidden" name="ruleList[0].ruleName" value="ABCDEFGH" /&gt; ABCDEFGH&lt;/td&gt;
                              &lt;td&gt;&lt;input type="radio" name="ruleList[].fixed" value="fixed" /&gt;&lt;/td&gt;
                              &lt;td&gt;&lt;input type="radio" value="true"&gt;
                                  &lt;select name="ruleList[].repeats" style="width: 80px;"&gt; 
                                          &lt;option value=""&gt;--Select--&lt;/option&gt;
                                          &lt;option value="weekly" /&gt;
                                          weekly
                                          &lt;option value="monthly" /&gt;
                                          monthly
                                          &lt;option value="quaterly" /&gt;
                                          quaterly
                                          &lt;option value="half-yearly" /&gt;
                                          half-yearly
                                          &lt;option value="annually" /&gt;
                                          annually
                                  &lt;/select&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                                  &lt;table border="1"&gt;
                                      &lt;tr &gt;
                                          &lt;td&gt;&lt;input type="hidden" name="ruleList[0].ruleAssignmentParameter[0].parameterName" value="Param 9" /&gt; Param 9&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="6549" /&gt; 6549&lt;/td&gt;
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[0].ruleAssignmentParameter[0].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                               &lt;option value="Minimum Sales"/&gt;Minimum Sales
                                                               &lt;option value="Service Amount"/&gt;Service Amount
                                                               &lt;option value="Promotional Sales"/&gt;Promotional Sales
                                                               &lt;option value="New Product Sales"/&gt;New Product Sales
                                                               &lt;option value="Sale Remotely"/&gt; Sale Remotely
                                               &lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;                                    
                                          &lt;tr &gt;
                                              &lt;td&gt;&lt;input type="hidden" name="ruleList[0].ruleAssignmentParameter[1].parameterName" value="Param 7" /&gt; Param 7&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="1234" /&gt; 1234&lt;/td&gt;
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[0].ruleAssignmentParameter[1].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                              &lt;option value=""&gt;--Select--&lt;/option&gt;
  
                                                               &lt;option value="Minimum Sales"/&gt;
                                                               Minimum Sales
                                                               &lt;option value="Service Amount"/&gt;
                                                               Service Amount                                                         
                                                               &lt;option value="Promotional Sales"/&gt;
                                                               Promotional Sales                                                          
                                                               &lt;option value="New Product Sales"/&gt;
                                                               New Product Sales                                                         
                                                               &lt;option value="Sale Remotely"/&gt;
                                                               Sale Remotely                                                         
                                               &lt;/select&gt;
                                           &lt;/td&gt;
                                          &lt;/tr&gt;                                       
                                          &lt;tr &gt;
                                              &lt;td&gt;&lt;input type="hidden" name="ruleList[0].ruleAssignmentParameter[2].parameterName" value="Param 12" /&gt; Param 12&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="7869" /&gt; 7869&lt;/td&gt;
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[0].ruleAssignmentParameter[2].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                              &lt;option value=""&gt;--Select--&lt;/option&gt;                                                        
                                                               &lt;option value="Minimum Sales"/&gt;
                                                               Minimum Sales                                                          
                                                               &lt;option value="Service Amount"/&gt;
                                                               Service Amount                                                        
                                                               &lt;option value="Promotional Sales"/&gt;
                                                               Promotional Sales                                                         
                                                               &lt;option value="New Product Sales"/&gt;
                                                               New Product Sales                                                          
                                                               &lt;option value="Sale Remotely"/&gt;
                                                               Sale Remotely                                                          
                                               &lt;/select&gt;
                                           &lt;/td&gt;
                                          &lt;/tr&gt;                                   
                                  &lt;/table&gt;
                              &lt;/td&gt;   
                          &lt;/tr&gt;
                              &lt;tr class="rule"&gt;
                              &lt;td&gt;&lt;input type="hidden" name="ruleList[1].id" value="1" /&gt; 1&lt;/td&gt;
                              &lt;td&gt;&lt;input type="hidden" name="ruleList[1].ruleName" value="XYZ" /&gt; XYZ&lt;/td&gt;                    
                              &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="ruleList[].fixed" value="fixed" /&gt;&lt;/td&gt;
                              &lt;td&gt;&amp;nbsp;&amp;nbsp; &lt;input type="radio" value="true"&gt;
                                  &lt;select name="ruleList[].repeats" style="width: 80px;"&gt; 
                                          &lt;option value=""&gt;--Select--&lt;/option&gt;                                        
                                          &lt;option value="weekly" /&gt;
                                          weekly                                      
                                          &lt;option value="monthly" /&gt;
                                          monthly                                     
                                          &lt;option value="quaterly" /&gt;
                                          quaterly                                        
                                          &lt;option value="half-yearly" /&gt;
                                          half-yearly                                     
                                          &lt;option value="annually" /&gt;
                                          annually                                        
                                  &lt;/select&gt;
                              &lt;/td&gt;                               
                              &lt;td&gt;
                                  &lt;table border="1"&gt;                                      
                                          &lt;tr &gt;
                                              &lt;td&gt;&lt;input type="hidden" name="ruleList[1].ruleAssignmentParameter[0].parameterName" value="Param 1" /&gt; Param 1&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="600" /&gt; 600&lt;/td&gt;                                                                                    
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[1].ruleAssignmentParameter[0].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                              &lt;option value=""&gt;--Select--&lt;/option&gt;                                                        
                                                               &lt;option value="Minimum Sales"/&gt;
                                                               Minimum Sales                                                         
                                                               &lt;option value="Service Amount"/&gt;
                                                               Service Amount                                                          
                                                               &lt;option value="Promotional Sales"/&gt;
                                                               Promotional Sales                                                          
                                                               &lt;option value="New Product Sales"/&gt;
                                                               New Product Sales                                                          
                                                               &lt;option value="Sale Remotely"/&gt;
                                                               Sale Remotely                                                        
                                               &lt;/select&gt;
                                           &lt;/td&gt;
                                          &lt;/tr&gt;                                       
                                          &lt;tr &gt;
                                              &lt;td&gt;&lt;input type="hidden" name="ruleList[1].ruleAssignmentParameter[1].parameterName" value="Param 2" /&gt; Param 2&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="4300" /&gt; 4300&lt;/td&gt;                                                                                  
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[1].ruleAssignmentParameter[1].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                              &lt;option value=""&gt;--Select--&lt;/option&gt;                                                        
                                                               &lt;option value="Minimum Sales"/&gt;
                                                               Minimum Sales                                                          
                                                               &lt;option value="Service Amount"/&gt;
                                                               Service Amount                                                          
                                                               &lt;option value="Promotional Sales"/&gt;
                                                               Promotional Sales                                                         
                                                               &lt;option value="New Product Sales"/&gt;
                                                               New Product Sales                                                          
                                                               &lt;option value="Sale Remotely"/&gt;
                                                               Sale Remotely                                                         
                                               &lt;/select&gt;
                                           &lt;/td&gt;
                                          &lt;/tr&gt;                                       
                                          &lt;tr &gt;
                                              &lt;td&gt;&lt;input type="hidden" name="ruleList[1].ruleAssignmentParameter[2].parameterName" value="Param 3" /&gt; Param 3&lt;/td&gt;
                                              &lt;td&gt;&lt;input type="hidden" value="1750" /&gt; 1750&lt;/td&gt;                                                                                  
                                          &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="text" name="ruleList[1].ruleAssignmentParameter[2].overwriteValue" value=""size="2"height="0.01"&gt;&amp;nbsp;or&amp;nbsp; 
                                              &lt;select style="width: 80px;"&gt;
                                                              &lt;option value=""&gt;--Select--&lt;/option&gt;                                                        
                                                               &lt;option value="Minimum Sales"/&gt;
                                                               Minimum Sales                                                         
                                                               &lt;option value="Service Amount"/&gt;
                                                               Service Amount                                                          
                                                               &lt;option value="Promotional Sales"/&gt;
                                                               Promotional Sales                                                          
                                                               &lt;option value="New Product Sales"/&gt;
                                                               New Product Sales                                                          
                                                               &lt;option value="Sale Remotely"/&gt;
                                                               Sale Remotely                                                         
                                               &lt;/select&gt;
                                           &lt;/td&gt;
                                          &lt;/tr&gt;                                       
                                  &lt;/table&gt;
                              &lt;/td&gt;   
                          &lt;/tr&gt;                       
                  &lt;/tbody&gt;
              &lt;/table&gt;
              &lt;br&gt;
               &lt;input type="submit" value="Update"&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have two radio button in different td, when i select one radio button of one td another should be disable,but its not working,</p>
  
  <p>How can I do it with jquery?</p>
  
  <p>thank you!</p>