Should I keep a copy in memory of the information being displayed?
<p>I am building a webapp to edit some information from a database. The database is being displayed as a table with editing capabilities.</p>

<p>When editing a value, generally I have to validate and do some other tasks, depending on the value that's being edited.</p>

<p>Should I keep a copy as array of objects in memory and use their methods or should I store all the information I need (type of value, id, etc) somewhere in the html table (as attributes or hidden inputs) and get them using several functions?</p>

<p>Which would be best practice? 
Is it risky to have many objects stored in memory (taking into account memory usage of the browser)?</p>
