Before any click, they have this appearance:
Clicking on Sales in the business section reveals a drop-down select box. If I click on "Sales" and modify the text area, it will transition to grey. While the grey rows change accordingly, the black rows should fade to black, not grey.
After making a selection:
I changed Sales to property, and after applying the animate() function, it turned grey and disrupted the striping pattern.
This is my function:
success: function (result) {
if (result) {
//Update the verbiage of the ".look" element to match the new value from the ".touch" element
theLook.text(newDes);
//Switch out the elements so that it resembles a normal table cell again
back_to_look();
//Briefly highlight the span within it so that the user knows the modification was successful
theTd.css('background-color','#59b4d4').animate({ backgroundColor: "#333333" }, 1500);
} else {
//Flash the ".touch" element in red without reverting back to the ".look" element as there was an issue with updating the data
var oldColor = theTouch.css('background-color');
theTouch.css('background-color','#ff0000').animate({ backgroundColor: oldColor }, 1500);
How can I retrieve the original background color setting and restore it? Do I need to specifically target the CSS using jQuery's css() method?