title: Change Table Row Background Color by Clicking Button in Different Table Using JQuery
body: <p>I have two tables, one that has rows added to it dynamically, and one that holds that data to add.</p>
  
  <p><img src="https://i.stack.imgur.com/1VjaW.png" alt="enter image description here"></p>
  
  <p>The above image shows the tables. When the Edit button is clicked, the data from that row (in Table 1) is inserted into the fields below it ("Table 2") and the row that we are editing is highlighted in Table 1 using css.</p>
  
  <pre><code>var row = $(a).parent().parent();
  row.children('td').css('background-color', '#FFFFCC');
  </code></pre>
  
  <p>Now assuming I can get the row index of the row that is being edited in table 1, how could I change that background back to white, if the user clicks the 'Cancel' button?</p>