When trying to change the text of an element using a dynamic selector I got Jquery error here is my Jquery code :
var idx = ".counter-up,."+json.updates[i].key;
var old = parseInt($(idx).text());
I get the error Syntax error, unrecognized expression: .counter-up,.
http://jsfiddle.net/toulmek/CPAjC/