Reputation: 103
<div class="panel panel-default">
<select>
<option value="A3">A3</option>
<option value="A4">A4</option>
<option value="A5">A5</option>
</select>
</div>
above code is not working and also I'm try deference codeVisit.but it's not to working properly.
please help me!thank you. I need a good solution.
Upvotes: 0
Views: 1350
Reputation: 11506
In the 2.1.0 version of the code (bootstrap-dropdown.js v2.1.0) touchstart.dropdown.data-api
is already included in most of the .on()
bindings. All you have to do is remove touchstart.dropdown.data-api
from the html binding for clearMenus, it's near the bottom of the file.
Change
$('html')
.on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
To
$('html')
.on('click.dropdown.data-api', clearMenus)
It's just clearing any menu when you touch anywhere in the document.
Upvotes: 1