1

Is there a simple package/CSS script that allows the selectInput() to display the drop-down contents on over instead of on click.

Been doing some research and it seems like this is not possible because the functionality is rendered by the browser. The only option may be to create a custom ul element using HTML and adding CSS to this. Is this the only way?

Is the twitter bootstrap package appropriate for this problem? Been having trouble finding good examples of the methods described in this package.

Sada93
  • 2,785
  • 1
  • 10
  • 21

1 Answers1

1

It is possible to make native select to open on hover, but there are better options.

Yes, twitter bootstrap is a viable option if you are already using it or have planned or researched about it.

Use select2 and see here how can you open it on hover using simple jQuery.


Here's HTML5's native way:

<select onMouseOut="this.size=1;" onMouseOver="this.size=this.length;">
    <option>Option Value 1</option>
    <option>Option Value 2</option>
    <option>Option Value 3</option>
    <option>Option Value 4</option>
    <option>Option Value 5</option>
    <option>Option Value 6</option>
    <option>Option Value 7</option>
</select>
abdul-wahab
  • 2,182
  • 3
  • 21
  • 35