Create objects with names from id's
<p>I'm trying to learn how to program b myself, and I'm stuck on this piece of code:</p>

<pre><code>window.onload = function() {
    var characteristicElements = document.getElementsByClassName("characteristic");
    for ( var i = 0 ; i &lt; characteristicElements.length ; i++ ) {
        var characteristicElements[i].getAttribute("id") = { set: false, val: 0, unn: 0 };
    }
};
</code></pre>

<p>I'm trying to create a few objects whose names are the id tags of the divs with the class "characteristic"". How do i get the id for the name? Sorry if this is really stupid and obvious.</p>
