Can someone please redirect me to the right link or give an example of how to work with two dimensional array or HashTable in JQuery? I tried google but did not get the answer. I want to avoid using any plugins. All i want to do it, store some information and retrieve them like HashTable way.
Share
Depending on what you want to use as keys into your “hashtable”, you might want to use an object with array properties instead of a two dimensional array.
For instance:
you can also set and access values in an object using dot notation:
If you’re just looking to keep track of key/value pairs then an object is the way to go: