I'm using jQuery's .data() method to store some data using nested objects like this:
$('div.divwithdata').data('somedata', {
'a': {
'b': {
'c' : {}
}
}
});
However my question is: Is there a way to replace nested object's property without overwriting the whole object ?
I tought it could be done with .data('somedata.a.b', 'newdata') or .data('somedata[a][b]', 'newdata'), but none of them worked.