this is my html strcture
<div class="parent">
<input class="child1" value="1">
<input class="child2" value="2">
<input class="child3" value="3">
</div>
i need to make a javascript array
combined_array={child1:"1", child2:"2", child3:"3"};
for this i write the following code . But it is not correct . Please help to find out error
$('.parent').children('input').each(function () {
var c_class=$(this).attr("class");
var c_value=$(this).val();
var combined_array={c_class:c_value};
});
alert(combined_array);