I have an array like so ['ABC123', 'ABC124'] and I am trying to put these items into an object so I can add more items:
var editObject = {};
$.each(editHolder, function () {
editObject[editHolder] = $('#' + editHolder).text();
});
console.log(editObject);
but this returns Object {ABC123,ABC124: ""}
what I am expecting is {ABC123: "text", ABC124: "text2"}
$('#' + editHolder).text(); is suppose to be the text in an input text feild with that id (which does exist)