I\'m trying to only show certain divs. The way I have decided to do this is to first hide all elements that start with \"page\" and then only show the correct <
div
You can use jQuery solution..
var $divs = $('div[class^="page"]');
This will get all the divs which start with classname page
page