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...
Expand|Select|Wrap|Line Numbers
- 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.size = "";
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)