<div class="first">First</div>
<div class="second">Second</div>
<div class="third">Third</div>
I am navigating the html with arrow keys(up, down) focus was going to each div element. I want to skip the focus of one div element in the html page
I tried with the below code
$('.second').onKeyDown= {e => {
if(e.key == "ArrowUp" || e.key == "ArrowDown") {
e.stopPropagation();
e.PreventDefault();
return false:
}
e.stopPropagation();
}}