Customized listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onlymukti4u
    New Member
    • Mar 2007
    • 50

    Customized listbox

    How to reduce the height and give a vertical scroll to the listbox?

    I have a listbox with 100 items, I just want to show only 10 items and that also once we select. If I am giving height or multitype then from the beginning only it shows 10 item box, but I want a list box with one item and once we select or click the arrow only it should show 10 items with a scroll in which we can see all the 100 items.

    Thanking you in advance.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You could do this with JavaScript, but is this not similar to a previous thread of yours?

    Comment

    • onlymukti4u
      New Member
      • Mar 2007
      • 50

      #3
      hi

      No, this requirement is something different, here I cant use any DIV, I have to reduce the height only using JavaScript.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        As far as I'm aware, this is a browser default which you can't change with JavaScript. If your browser shows all items, or 20 items, you can't really change that. The only way to work around this is to create your own select element using DHTML.

        Comment

        Working...