ACE Solution! Thanks
more compact than this would be:
works with keydown event too. do you think I'll have some problem with
browser, etc?
navigation is working with keyboard here: http://dmtr.org/
On Apr 28, 12:10 pm, George Adamson
wrote:
> Are you able to use the keyup event instead or does
Are you able to use the keyup event instead or does it need to be
keydown?
(Inside the keyup event handler the option:selected item should be the
one you're after, instead of having to derive it.)
Failing that could you just find the next/previous option by using
selectedIndex +/-1 ?
Something
Try changing .val() into .text() or .html()
On 27 apr 2009, at 22:51, dimitre wrote:
thanks for the quick answer, unfortunately no, I can't understand why
but it returns "undefined"
On Apr 27, 5:37 pm, Remon Oldenbeuving
wrote:
hi,
$(document).keydown (function(e) {
thanks for the quick answer, unfortunately no, I can't understand why
but it returns "undefined"
On Apr 27, 5:37 pm, Remon Oldenbeuving
wrote:
> hi,
>
> $(document).keydown (function(e) {
> if (e.keyCode == 37)
> if(n == $('select
> option:selected').
hi,
$(document).keydown (function(e) {
if (e.keyCode == 37)
if(n == $('select
option:selected').prev('option').val())
location.href = n;
if (e.keyCode == 39)
if(n == $('select
option:
5 matches
Mail list logo