i have a table in which i create the rows dynamically with JS.
Everythings works except my sizes are off. they are controlled via CSS class "field1" to "field8"
Here's the code where i set the class, just like any other attribute, id, name, onBlur...
weather i change it to field 2 or 8, the text box appears as a standard size.
It is NOT a css problem, because on refresh the textboxes that are there by default display the correct size.
i could do this, but haven't tried
vDesc.style.siz e = "";
However that defeats the point of putting all formatting in a CSS file.
Anybody know why Firefox 2.0 disregards the class?
(can't test in IE6/7 yet because its got other issues)
Everythings works except my sizes are off. they are controlled via CSS class "field1" to "field8"
Here's the code where i set the class, just like any other attribute, id, name, onBlur...
Code:
var vDesc = document.createElement('input');
vDesc.type = 'text';
vDesc.name = 'violationDescription[]';
vDesc.id = 'vDesc' + numRows;
vDesc.tabindex = tabIndex++; //don't worry about ++
vDesc.value = "";
vDesc.class = "field6"; //<------- does not work
var cell = row.insertCell(1);
cell.appendChild(vDesc);
It is NOT a css problem, because on refresh the textboxes that are there by default display the correct size.
i could do this, but haven't tried
vDesc.style.siz e = "";
However that defeats the point of putting all formatting in a CSS file.
Anybody know why Firefox 2.0 disregards the class?
(can't test in IE6/7 yet because its got other issues)
Comment