dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Hide/Show option from select

  1. #1
    Join Date
    Oct 2008
    Posts
    4

    Unhappy Hide/Show option from select

    Hi,

    How can i hide/show option from Select?
    Here is the code i have written:
    if(ansSkin == "Master of Architecture")
    degrees.options[i].style.display = "none";//degrees is obj of select

    Its working fine on FF, IE7, Netscape. Just on IE6 its not working

    Can any one help me with this?

    Thanks in advance.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You will have to remove it from the list.
    degrees.options[i]=null

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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



Recent Articles