Adding elements to dropdownlist through javascript

Posted by rocksolid on Stack Overflow See other posts from Stack Overflow or by rocksolid
Published on 2010-06-08T16:32:20Z Indexed on 2010/06/08 16:42 UTC
Read the original article Hit count: 157

Filed under:
|
|
|

Am unable to add elements to a dropdown list via Javascript.

The below piece of code works in IE and Chrome, but not in firefox.

ddlId.add(new Option("",0));

In firefox, I keep getting an 'Not enough arguments' exception. Any idea on how to resolve it? Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about firefox