I have a page that when you click on a button it is supposed to add 5 more rows to an existing table. This functionality works but then we had to change one of the cells from using a Text box to using a Select box and then it no longer worked completely. I can see the Select box with the drop down arrow but the width of the box is not the same as the original Select boxes. Also the OnClick and OnChange events do not work for the newly added Select boxes. Below is the code we are using to create the Select boxes. I am pretty sure I have the rest of the code correct but just am not getting line 3 typed in correctly.
I would think that this should be able to be done so any help from any one would be greatly appreciated.
I would think that this should be able to be done so any help from any one would be greatly appreciated.
Code:
// Consumption PO cell var cellRight = row.insertCell(2); var el = document.createElement('<select><input TYPE="select-one" NAME=cmbConsPO' + iteration + ' SIZE="1" STYLE="WIDTH: 170px" OnClick="ConsPOClick(' + iteration + ')" OnChange="ConsPOChange(' + iteration + ')" ></select>'); cellRight.appendChild(el);
Comment