jQuery: Store additional/extra data/info inside a jQuery object?
<p>Is it possible and smart to store extra data inside a jQuery object?</p>

<p>Right now I have objects that contain some data but these objects also have a visual representation of that data. This works but I have a lot of code to keep them both in sync. </p>

<p>For example if you delete an object from the dom I also have to delete the related object from the object array. Deleting is fairly simple but it gets a little more complicated if I start sorting/moving the objects around.</p>
