I have the following array
var my_arry =
{ "Description": "Actual Opening stock"
, "Fri 05-Aug": "<input type='text' class='form-control' value='600'>"
, "Mon 01-Aug": "<input type='text' class='form-control' value='200'>"
, "Thu 04-Aug": "<input type='text' class='form-control' value='500'>"
}
I want loop through this and format the array like bellow
var my_arry =
{ "Description": "Actual Opening stock"
, "Fri 05-Aug" : "600"
, "Mon 01-Aug" : "200"
, "Thu 04-Aug" : "500"
}
basically get the value from input tag
I have use the following but did not work
$.each( my_arry, function( key, value ) {
console.log(value.find('input').val())
});
any other way I can do this