-
Dynamically adding to a Select box
I use this code to dynamically add <options> to a select box. In IE it works
fine, but I don't think it is supported in NS6. Anyone know of a way to do
this in Netscape 6.1?
var eNewItem = document.createElement("<OPTION value='" +sValue +"'>");
eNewItem.text = sText;
document.getElementById("text").add(eNewItem);
Any help here would be great!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|