Menu
To clarify, the thing i’m trying to insert is,
[url]http://www.w3schools.com/htmldom/dom_obj_select.asp
I have a table and i want to insert a select object into one of the cell. but i am getting a “Type mismatch” error on line with code “cell.insertBefore(selectBox);”
I am running IE 6
[CODE]
var selectBox = document.createElement(‘select’);
var option = document.createElement(‘option’);
option.text = “And”;
try
{
selectBox.add(option, null); // standards compliant
}
catch(ex)
{
selectBox.add(option); // IE only
}
}
cell5.insertBefore(selectBox);
Thanks alot!!