I am having problems trying to sort this on my own.
I have a hidden field containing a small amount of json.
I populate a variable using
$(document).ready(function() {
var data = $("#result").text();
var j = JSON.parse(data);
j.my_item.total_price==="2222";
console.log(j.my_item.total_price);
});
the variable j is showing the correct data, I just don't have a clue how to update the total_price
Can anyone suggest what I need to do to enable me to update total_price?