I have a HTML page with jquery loaded in and 2 links on the page.
<a href='www.example.com'>Buttona</a>
<a href='www.example2.com'>Buttonb</a>
How can I make pressing the “1” key be like pressing the first link, and pressing the “2” key be like pressing the second link using jquery?
Give the links an id so you can reference them so
Then on your page add the jquery to capture the key up of 1 to find
linkaand click.If using jquery 1.7 you can use .on() instead on .live()