in reply to CGI param returns HTMLInputElement.

Can you try using the following function,
function addOption(object,text,value) { object.options[object.options.length] = new Option(text, value); }

Replies are listed 'Best First'.
Re^2: CGI param returns HTMLInputElement.
by lanta (Sexton) on Oct 02, 2007 at 11:53 UTC
    Thanks balaji_red83, that was not the probem, but you're right, no need for the extra variable and the extra statement. Duly noted.