OZONE Asylum
Forums
DHTML/Javascript
populating a select list
This page's ID:
28574
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi there, I have the following code: ( which does not seem to work... any ideas ? ). I dont seem to get any errors, but yet the form remains unpopulated. code tp add the item.... [code]document.data.location[location.length] = new Option(OptionText, OptionValue);[/code] form item... [code]<select id="dd_location2" name="location"> <option value="0"></option> <option value="4" >Other Locations</option> </select>[/code] I've also tried this way as well, no dice. [code] document.getElementById('dd_location2').length = new Option(OptionText, OptionValue);[/code] [small](Edited by [url=http://www.ozoneasylum.com/user/4121]protoculture[/url] on 10-25-2006 18:30)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »