I'm trying to do something like this with the data method:
$("body").data("bar", { myType: "test", count: 40 });
However, I can't seem to set "count" like this:
$("body").data(bar["count"], 41);
Is my syntax wrong?
I'm trying to do something like this with the data method:
$("body").data("bar", { myType: "test", count: 40 });
However, I can't seem to set "count" like this:
$("body").data(bar["count"], 41);
Is my syntax wrong?