I have customized a select menu for user interaction, but I am facing issues with normal keyboard behaviors not working as expected.
Specifically, I want to enable tab functionality to navigate to my styled select menu just like when clicking tab
to cycle through inputs on a page. How can I achieve this? Below is the CSS styling I have applied to my menu:
.selectMenu {
font-family: 'Oxygen', sans-serif;
font-size: 20px;
height: 50px;
-webkit-appearance: menulist-button;
}
/* Additional CSS styles */
.select-hidden {
display: none;
visibility: hidden;
padding-right: 10px;
}
... (CSS code continues)
and jQuery …
$(function() {
$('select').each(function(){
styleSelectMenu($(this));
});
});
// JavaScript function for styling the select menu
function styleSelectMenu(selectMenu)
{
// Functionality for styling the select menu
...
} // clickListItem
You can find an example Fiddle here — http://jsfiddle.net/cwzjL2uw/2/. Any suggestions on how I can implement tab selection for my stylized menu?