Link to home
Start Free TrialLog in
Avatar of Vincent Stack
Vincent StackFlag for Qatar

asked on

How NOT to overwrite my javascript object values

I have a javascript object.  I get values for the properties by iterating a table on my html page.  Problem is every time the loop iterates it overwrites the previous value.  

Please see attached a file.

How can I add to my object without overwriting previous values?
overrite-object.txt
Avatar of John Gates, CISSP, CDPSE
John Gates, CISSP, CDPSE
Flag of United States of America image

You need to read the values into an array:
http://www.w3schools.com/js/js_arrays.asp
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vincent Stack

ASKER

Thank you.