I got this code
echo '<select name=ourproducts onchange="javascript:copydown('.$i.');" CLASS="predefined" >';
and then in the copydown function:
for (i = 0; i < document.addform.ourproducts.length; i++){
alert(document.addform.ourproducts.options[0].text);
}
It constantly says no object or NULL
but i triplechecked the form name the select field name
and when i use document.addform.ourproducts.length
it works but not document.addform.ourproducts.options.length
What am i missing here?
Thank you
Danie