Hi - I have a dynamically created table, which has a number of forms -
each named consecutively as 'adduserX' where X is a number generated
from ASP.
Within each form, I need to have a button which will call JavaScript,
but pass the name of the form the button is in, as well as a select list
name.
<input name="check" type="button" onclick="mt_showHilite(this.newname)"
value="submit">
The Javascript function needs to get the options from the select list:
function mt_showHilite(selname){
var opts=selname.options;
...but I keep getting an error 'options' is null or not an object.
I know the problem lies in my onclick text, but can't figure it out.
Can anyone please help?
Thanks,
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!