I want to replace specific field value in multi dimentional array. I tried to replace it by replace function.
But, there are maybe something wrong in syntax structure. So, I can't replace it.
This below array display in console when I check my ko observable array.
0 : {id: "1", title: "IT Manager", "description" : "description 1"}
1 : {id: "2", title: "Manager", "description" : "description 2"}
I want to change value dynamically like in 1 index array want to change like from description 2 to description 3.
on keyup, I call this below function and get current parent data :
changeQty : function(itemIndex){
self.displayProductData.splice(4,self.displayProductData()[itemIndex.id], newQtyVal);
},
How to do that ?
Please help me.