Two tables are involved in this scenario - one that receives dynamically added rows, and another that stores the data to be included.
The illustration above displays these tables. Upon clicking the Edit button, the information from the selected row in Table 1 is transferred to the fields directly below it (Table 2), while the edited row in Table 1 is highlighted with CSS.
var row = $(a).parent().parent();
row.children('td').css('background-color', '#FFFFCC');
If I am able to determine the index of the row being edited in Table 1, how can I change its background back to white when the user clicks the 'Cancel' button?