This code snippet demonstrates the toggling of a div on and off. The use of .style property controls the background color of the parent element when toggling the div. Interestingly, the code works flawlessly in Opera but seems to have issues in Chrome. Despite my efforts, I have not been successful in finding a solution yet.
Although I could move forward and achieve my desired outcome with different code, this particular issue has piqued my curiosity now.
function CheckOutOpn(){
var Inny = document.getElementById("RightPaneASxOrderForm");
MVxCheckOutForm();
CDxButtonOpnChkOut();
MVxCLOSExBttnChkout();
Inny.style = "background-color:#332223;";
}
function CLOSExCheckOut(){
var Inny = document.getElementById("RightPaneASxOrderForm");
MVxButtonOpnChkOut();
CDxCLOSExBttnChkout();
CDxOrderFormItself();
Inny.style = "background-color:#33B32E;";
}