title: Javascript Objects with variable properties: Is it possible?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4255472/javascript-object-access-variable-property-name">javascript object, access variable property name?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm sure it can be done but I could use some help...</p>
  
  <pre><code>$('.red_button')
      .each(function() {
          var someVariable = $(this).attr('name');
          myObject.someVariable = 0;
      });
  </code></pre>
  
  <p>Many thanks to my saviour!</p>