JS dynamic json array creation is not working in IE 11

I have to make a dynamic JSON array using js. My code is like

var item_id=document.getElementById(vendor_id+"item-id"+i).innerHTML;
     var quantity=document.getElementById(vendor_id+"quantity"+i).value;
     var unit_price=document.getElementById(vendor_id+"unit-price"+i).innerHTML;
     var sub_total=document.getElementById(vendor_id+"price"+i).innerHTML;
     item={
      item_id:item_id,
      quantity:quantity,
      price:unit_price,
      sub_total:sub_total
     }
     console.log(item.item_id);
     products.push(item);

When I run this on chrome, I am getting the item array, also getting the console print item_id.
But when I run this on IE 11 the console print is undefined

item.item_id is undefined

How can I change this to work in all browsers?

48 thoughts on “JS dynamic json array creation is not working in IE 11”

  1. friends song positive affirmations worksheet pdf , buy Ivermectin tablets [url=http://ivermectinsale.me/#]stromectol for sale[/url] community definition merriam webster. positive and negative zeros positive quotes law of attraction . positive pregnancy test on period Barato Danazol en Chile, Comprar Danazol medicamento. Comprar Danazol sin receta Comprar Danazol genГ©rico [url=https://kit.co/hoschever/donde-comprar-danazol-200-mg-barato-danazol-en-chile#]DГіnde comprar Danazol 200 mg, Barato Danazol en Chile[/url] , positive feedback negative feedback community action partnership coeur d’alene idaho friends university wichita ks [url=http://sagimpiantitecnologici.com/step-by-step-straightforward-loveme-com-plans/#comment-4398293]community action council housing Canada[/url] 8700a9e , positive affirmations audio , community action agency salem oregon .

    Reply
  2. pharmacie de garde chateauroux pharmacie forum boulogne billancourt , pharmacie grottes beaulieu pharmacie gaillard aix en provence , Tamoxifene pharmacie Belgique, Tamoxifene livraison Belgique. Tamoxifene sans ordonnance Belgique Tamoxifene pas cher [url=https://santevsex.asso-web.com/#]Tamoxifene sans ordonnance Belgique[/url] pharmacie lafayette givors horaires Fertomid prix sans ordonnance, Acheter Fertomid womens health pas cher. Fertomid sans ordonnance QuГ©bec Fertomid pas cher [url=https://troubles48teg.asso-web.com/#]Fertomid sans ordonnance QuГ©bec[/url] , pharmacie annecy-le-vieux masques pharmacie boulogne billancourt , sur produits medicamenteux. act therapie acceptation engagement Chloroquine sans ordonnance Canada, Acheter Chloroquine 500 mg pas cher. Chloroquine pharmacie Canada Chloroquine pas cher [url=https://france24in.asso-web.com/#]Chloroquine pas cher[/url] , therapie cognitivo comportementale bourg en bresse pharmacie de garde zeralda, therapie cognitivo comportementale tours pharmacie beaulieu puilboreau . therapie cognitivo comportementale nimes, medicaments johnson & johnson pharmacie autour de moi ouverte therapie de couple yonne .

    Reply
  3. Интернет-платформа Джойказино возникла на просторах отечественного интернета в 2014 году.
    Клиентам интернет-платформы предоставляется топовый софт от проверенных
    временем производителей. В ассортимент лицензионных продуктов вошли аппараты с
    барабанами и линиями, лайв-игры и пари на спорт и киберспортивные дисциплины.

    Reply

Leave a Comment