jquery - Can't figure out how to access object elements using $.each -
I hope the following will alert 'game1' and then 'game2' but it will not alter anything
"Pages": "game1", "leftButtonText": "back", "leftButtonHREF": "#mainPage", "rightButtonText": "close" , "Right button": "right" button: "close", "right button hirf": "# man page"}, "sub-menu": {"page 2", "game2", "left button text" : "Back", "left button": "# man page", "home page"}} $ .each (page, function (id, page) {warning (page title);});Edit: updated to clear questions
You can repeat 'again on the pages
which is an array, try:
Warning (p. Menu.Main.pageTitle);
Comments
Post a Comment