> Sime Vidas, I see your point, but how is that better than the 2 options i > presented? Is it better? why use your option and not one of the 2 that i > provided?
Well, a global variable is out of the question, you want to avoid global variables. As for using .data(), that depends on the "scope" of the array. Is the information in the array relevant to the entire web-page, or just that one element? -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
