Reputation: 133
I would like to add arrow key navigation for ul li item on my page using jquery, however on the same page there is a form with input text. Problem is the input text also catch the key arrow event. How to go about so only the ul li container catch these event, not others. Thanks in advance.
Upvotes: 0
Views: 470
Reputation: 78550
$("#myForm input:text").on("keyDown", function(event){
event.stopPropagation();
});
That should might fix it.
Upvotes: 1