You can create new option items dynamically with the Option() constructor. They can then be assigned into the array of options. If you want to remove one, then simply assign null to its array entry and the option will be removed from the popup menu.
Prev | Home | Next |
Select.multiple | Up | Select.remove() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |