I'm trying to simply click a link whenever someone presses the right arrow key, but nothing is happening.
I've got this link:
<a title="party pics! 16" href="/photos/photo/new-party-pics-16/" id="next-in-gallery"> <img src="http://localhost/static/photologue/photos/cache/thumbnail16.jpg"> </a> and this jQuery:
<script type="text/javascript"> $(document).keydown(function(e){ if (e.keyCode == 39) { $("a#next-in-gallery").click(); return false; } }); </script> Seems to do nothing, though. Thoughts?