Each table row in a table contains a table data that has an edit button. A table row that is enabled must be disabled when the user clicks the edit button in another row, then the row of that edit button which you recently clicked is enabled.

```
HTML: 

<table>
  <tr>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="submit" name="edit" id="editBtn" class="edit"></td>
  </tr>
   <tr>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><span class="edit">Edit</span></td>
  </tr>
   <tr>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="submit" name="edit" id="editBtn" class="edit"></td>
  </tr>
   <tr>
   <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="checkbox" disabled></td>
    <td><input type="submit" name="edit" id="editBtn" class="edit"></td>
  </tr>
</table>

  JQUERY:
    $(function() {
       $( "table" ).on( "click", ".edit", function() {
          $(this).removeClass('edit');
          $(this).addClass('removeEdit');
            $(this).parents('tr').find('input[type=checkbox]').prop('disabled', false);
            });

        $( "table" ).on( "click", ".removeEdit", function() {
          $(this).removeClass('removeEdit');
          $(this).addClass('edit');
            $(this).parents('tr').find('input[type=checkbox]').prop('disabled', true);
            });

```