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. Hide an Option Item in Select Box

Hide an Option Item in Select Box

Scheduled Pinned Locked Moved Web Development
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.
  • T Offline
    T Offline
    Tiger456
    wrote on last edited by
    #1

    Hi Is there any way to hide an option item in a select box.

    Steve EcholsS 1 Reply Last reply
    0
    • T Tiger456

      Hi Is there any way to hide an option item in a select box.

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      I don't think you can hide it, but you can disable it with the "disable" attribute, which greys it out and makes it unselectable. If you want it hidden, I think your only option is not adding it to the select.


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      D 1 Reply Last reply
      0
      • Steve EcholsS Steve Echols

        I don't think you can hide it, but you can disable it with the "disable" attribute, which greys it out and makes it unselectable. If you want it hidden, I think your only option is not adding it to the select.


        - S 50 cups of coffee and you know it's on!

        D Offline
        D Offline
        Do Ngoc Tu
        wrote on last edited by
        #3

        for me, you can take it's attribute such as : "text" I think it will make your options to be hidden:)

        i love Image

        Steve EcholsS 1 Reply Last reply
        0
        • D Do Ngoc Tu

          for me, you can take it's attribute such as : "text" I think it will make your options to be hidden:)

          i love Image

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #4

          Nice! Didn't know you could do that.


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          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