Possible Duplicate:
javascript object, access variable property name?
I'm sure it can be done but I could use some help...
$('.red_button')
.each(function() {
var someVariable = $(this).attr('name');
myObject.someVariable = 0;
});
Many thanks to my saviour!