dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: RemoveItem from listbox

  1. #1
    Sylvain Bujold Guest

    RemoveItem from listbox


    HI guys,

    I have a drop-down menu with a link just beside which opens a look-up window
    which I would like to use to manage the content of the listbox on the first
    page.

    I know how to add one and modify one with the form.list[index]=new options(.....)
    but I don't know how to REMOVE an option from my listbox. I am able to get
    a blank option with no value but I just HATE that.

    So I would like to know is there a way to completely REMOVE an item from
    the drop-down menu??????

    Thanks,
    Sylvain Bujold

  2. #2
    Ajith Edassery Guest

    Re: RemoveItem from listbox


    Hi,
    e.g. to remove the third item you have to use a statement like this:

    list.options[2]=null;

    Have fun!
    Ajith

    "Sylvain Bujold" <sylvain@ntechweb.com> wrote:
    >
    >HI guys,
    >
    >I have a drop-down menu with a link just beside which opens a look-up window
    >which I would like to use to manage the content of the listbox on the first
    >page.
    >
    >I know how to add one and modify one with the form.list[index]=new options(.....)
    >but I don't know how to REMOVE an option from my listbox. I am able to get
    >a blank option with no value but I just HATE that.
    >
    >So I would like to know is there a way to completely REMOVE an item from
    >the drop-down menu??????
    >
    >Thanks,
    >Sylvain Bujold



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