given this code in a script tag in a coldFusion template:
(snip)
var oracle_number_cell = document.getElementById(‘oracle_number_cell’);
(snip)
oracle_number_cell.setAttribute(‘width’,’33%’);
oracle_number_cell.setAttribute(‘bgcolor’,’white’);
oracle_number_cell.setAttribute(‘align’,’center’);
(snip)
var tdText=document.createTextNode(‘Oracle Order Number: ‘);
var oracle_order_num = document.createElement(‘input’);
oracle_order_num.setAttribute(‘type’,’text’);
oracle_order_num.setAttribute(‘name’,’oracle_order_num’);
oracle_order_num.setAttribute(‘value’,”);
oracle_order_num.setAttribute(‘size’,’7′);
oracle_order_num.setAttribute(‘maxlength’,’7′);
oracle_number_cell.appendChild(tdText);
oracle_number_cell.appendChild(oracle_order_num);
everything works except the changing of the background color to white. On this particular entry page, the user is given a choice, if this is a particular type of order, the oracle order number is required, by default it is not. On the default screen the td tag is gray with width=1, used as a layout divider. When the user clicks ‘yes’ for the particular order type, the td’s in this row resize and the code above is run. Am I missing something obvious about the bgcolor?