setting jQuery .data() within .getJSON callback
- by hackmaster.a
I'm doing a couple of .getJSON calls and if any one of them succeeds, I'm trying to set a bool to true so I can then do some other stuff elsewhere on the page. I was trying to use jquery's .data() function, but I don't seem able to set it from inside the .getJSON callback. for example:
$('#citations_button').data('citations', false);
…