Posts by Andrew Freitas • 19 points
2 posts
-
-1
votes1
answer192
viewsA: In JS how do I list the contents of an "object" or "array"?
Try this: console.log('index:' + i); console.log(this);
javascriptanswered Andrew Freitas 19 -
2
votes2
answers237
viewsA: Is it good practice to store a JSON object in a data-attribute?
Generally speaking, no problem. Have you considered using Angularjs? It has a feature that maps an element to a model directly, and automatically synchronizes to you.