Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How do I do multiple selects from dropdown either using JavaScript and

How do I do multiple selects from dropdown either using JavaScript and

Scheduled Pinned Locked Moved JavaScript
javascriptquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11793133
    wrote on last edited by
    #1

    Using JQuery or JavaScript, how do I do multiple selects on dropdown so, I can see multiple results in the page?

    F 1 Reply Last reply
    0
    • U User 11793133

      Using JQuery or JavaScript, how do I do multiple selects on dropdown so, I can see multiple results in the page?

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      You can't select more than one item in a dropdown, you'll need to use a jquery select plug-in that allows for multiple things to be selected.

      J 1 Reply Last reply
      0
      • F F ES Sitecore

        You can't select more than one item in a dropdown, you'll need to use a jquery select plug-in that allows for multiple things to be selected.

        J Offline
        J Offline
        jsc42
        wrote on last edited by
        #3

        F-ES Sitecore wrote:

        You can't select more than one item in a dropdown

        Assuming your dropdown is an HTML , you can use ideally with a size=_n_ attribute (I know that makes it an open list, but it is far more convenient than a single entry dropdown list). Thereafter, any JS book / online tutorial will tell you how to mark selected entries (clue: ignore selectedIndex)

        F 1 Reply Last reply
        0
        • J jsc42

          F-ES Sitecore wrote:

          You can't select more than one item in a dropdown

          Assuming your dropdown is an HTML , you can use ideally with a size=_n_ attribute (I know that makes it an open list, but it is far more convenient than a single entry dropdown list). Thereafter, any JS book / online tutorial will tell you how to mark selected entries (clue: ignore selectedIndex)

          F Offline
          F Offline
          F ES Sitecore
          wrote on last edited by
          #4

          That makes it a listbox and not a dropdown.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups