options.add() not available in Javascript?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: options.add() not available in Javascript?

  1. #1
    peter Guest

    options.add() not available in Javascript?


    Hi,

    is it true that ...options.add(...) not supported in javascript? i got
    this error when trying to insert a new option to a <select> element on my
    page. is there a workaround?

    thx!

    Peter

  2. #2
    Hans Wurst Guest

    Re: options.add() not available in Javascript?


    yes...

    formname.selectboxname.options[formname.selectboxname.options.length]=new
    Option("new text for option")



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center