Is it possible to make it so I can navigate through a set of radio buttons with the arrow keys without automatically selecting them? I currently have a popup that I want to close when the user selects the radio button and I'm using .click(), but when you navigate the radiobuttons in the popup with arrowkeys, each navigation leads to the popup closing and the user having to reopen it.
Suggestions?
Thanks!
Edit: This is my live demo: jsfiddle.net/TKWzH/4
The real thing has a lot more than the open and close function, so is there a way to combine the keydown enter and mousedown into one? Like
$("#popup2 input:radio").bind('keydown keyCode == 13', 'mousedown' function () {
$('#popup2').css('display', 'none');
});
Something like this? Though I realize this is incorrect and probably makes no sense.