They are working just fine.
In the script that retrieves the items of the database and put them in the following string :
echo "obj.options[obj.options.length] = new Option('".$sel1['sel2_desc']."','".$sel1['sel2_id']."','".$sel1['spec']."');\n";
the first item (sel2_desc) is the item name, second(sel2_id) is the item id, and the third parameter is a flag to be used.
How can I acces this third parameter ? (this parameter is set to 0 or 1)
I've tried with :
obj.options[selectedIndex][2].value, but it gives me an error like
obj.options.2.value is not an object...
Can anyone help me out with this ?