Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to create options in a dropdown (multi select) using javascript

    Hi,

    I have multislect list on my html form which i created using
    <select name="cats" multiple='multiple'>
    </select>
    now i want that option in the list should be created using javascript e.g.
    <option value='2'>Book</option>.

    i want to create just options using javascript not complete <select

    Kindly help me if anyone has idea how this can be done.

    It is urgent for me.

    Thanks in Anticipation

    Ali.

  • #2
    Regular Coder
    Join Date
    Nov 2004
    Location
    The land of chocolate
    Posts
    226
    Thanks
    1
    Thanked 16 Times in 16 Posts
    -Snow

    Susie, if you want to see your doll again, leave $100 in this envelope by the tree out front. Do NOT call the police. You CANNOT trace us. You CANNOT find us.

    Sincerely,
    - Calvin.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •