Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript switching between divs using the keyboard and jquery

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30397
    weissraum
    Member

    hi folks,

    hopefully somebody can help me

    let´s say i have 8 different divs aligned in two rows. each div has a link which guides to the next div. i am using smooth anchors to animate the motion between the divs.

    is there a possibility to switch between the divs using the keyboard, too? e.g. by pressing the right arrow => switch to div#2;
    by pressing the down arrow => switch to div#6 …

    sorry for my bad english and thank you for your answers

    #79003
    noahgelman
    Participant

    Yeah, there are a couple jQuery ways to do it. Google ‘jquery key’ or ‘jquery keypress’ or things like that and they’ll show you a dozen examples how.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.