Everything works in the code below but I would like to take "filterItemID[0].Zone1", remove "Zone1" and insert the var getPriceID. I've tried doing this multiple ways but nothing seems to work.
function jsonParser(json) {
$.getJSON('../../data/empdata.json', function(data) {
var filterItemID = $.grep(data, function(element, index) {
return element.ItemId == findItemID;
});
var getPriceID = $("#PriceIDs").val();
var UpdateCostField = filterItemID[0].Zone1;
$(contentpaneIFParent).find("#Cost").append().val(UpdateCostField);
$(contentpaneIF).css('background-color', 'transparent');
});
}