Hello friends! Help please: problem with the tag "select" on a menu
The problem is to choose an option tag "select" without closing the menu.
Help please!
- <div class="presup">
- <ul>
- <li><a href="#">Button-one<span>▼</span></a>
- <ul>
- Cont-one
- <select id="select">
- <option value="volvo">Volvo</option>
- <option value="saab">Saab</option>
- <option value="mercedes">Mercedes</option>
- <option value="audi">Audi</option>
- </select>
- </ul>
- </li>
- </ul>
- </div>
-
- <div class="presupdos">
- <ul>
- <li><a href="#">Button-two<span>▼</span></a>
- <ul>
- Cont-dos
- </ul>
- </li>
- </ul>
- </div>
- jQuery(function($) {
- init('.presup,.presupdos', 0);
- function init(selector, count) {
- $(selector).find('li').each(function() {
- if ($(this).find('ul').length > count) {
- $(this).hover(function() {
- $(this).find('ul').stop(true, true).slideDown();
- }, function() {
- $(this).find('ul').stop(true, true).slideUp();
- });
- }
- });
- }
- });
MIKEPIANIST.-