0

it is possible to open drop down list without mouse click and using pure JavaScript ?

user3002237
  • 9
  • 1
  • 1
  • 1
    Typically you want to include some example code of what you've tried and what isn't working. In the future, make sure you've given it a good-faith effort before asking a question. :) – elreimundo Nov 17 '13 at 18:30
  • 1
    Could you specify whether you mean a ` – m59 Nov 17 '13 at 18:35

2 Answers2

1

This is assuming you mean a dropdown nav menu, not a <select>.

 <ul>
    <li><a>hover here</a>
      <ul>
        <li>Link 1</li>
        <li>Link 2</li>
        <li>Link 3</li>
        <li>Link 4</li>
      </ul>
    </li>
  </ul>

css:

ul li ul {
  display: none;
}

ul li:hover ul {
  display: block;
}

Live demo here (click).

m59
  • 43,214
  • 14
  • 119
  • 136
0

Sorry, but is not possible. Best thing you could get is select a option from the list.

Babblo
  • 794
  • 5
  • 17