$(document).ready(function(){ document.querySelector(".sub-menu").tabIndex = 0; // if (document.querySelector(".sub-menu")) })