hi
i have this function which sets the attribute of my select element:
width doesn't work in adjusting the size
how do i set the width of my select?
Thanks in advance
i have this function which sets the attribute of my select element:
Code:
var cell4 = row.insertCell(4);
var selectCost = document.createElement("select");
setAttributeForElementSelect(selectCost , 'COST_'+nextRow , '80' );
function setAttributeForElementSelect(element,nameIDandTitle,width){
element.setAttribute('id',nameIDandTitle);
element.setAttribute('title',nameIDandTitle);
element.setAttribute('name',nameIDandTitle);
element.setAttribute('width',width);
}
how do i set the width of my select?
Thanks in advance
Comment