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

Home Forums JavaScript jquery array help

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #30061

    I have 5 pages and I want to store them in an array. So I started doing that like this

    var arr = [“home”, “intro”, “aboutContent”, “menu”, “reservations”, “contact”];

    my problem is that I do not know how to manipulate the array now. Do you know how to access it? For example. If I want to hide all the pages and then show just one? I thought I might be able to do it like this


    but it don’t work

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