drop down menu - In Bootstrap 2.3.2, when there is multiple dropdown element and when the key pressed is enter, it is not showing the right dropdown -
When I press "Enter" in the text box, a dropdown menu is shown which is the first one. It should be a dropdown menu related to textbox. I'm using Bootstrap 2.3.2.
Is there any way to correct this behavior?
See the CodePan for an example:
This is how I fixed my problem
var $ this = $ (this); $ This.find ('input') Bind ('keypress', function) {if (event.keyCode == 13) {if ($ this.find ('.btn-group button trackdown-toggle') .length & gt; 0) {event. PreventDefault (); $ this.find ('.btn-group button. Trackdown-toggle'). ();}}});
The problem is with the button button when you change the enter button event fire button The tag will be resolved to increase your problem
Comments
Post a Comment