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
arr[3].show()
but it don’t work
Author
Posts
Viewing 1 post (of 1 total)
The forum ‘JavaScript’ is closed to new topics and replies.