function callBackKeyUp(){ that.currValue = that.maxvalue - $(that.input).val().length; $(that.place).html(that.currValue); }
osAjaxBackend.BindAfterAjaxRequest(bindEvents);
function CharacterCount_init(inputSelector, counterSelector, limit) { var CharacterCount_update = function() { $(counterSelector).html(limit - $(inputSelector).val().length); } CharacterCount_update(); $(inputSelector).keyup(CharacterCount_update); }
Thanks for sharing Igor. Ran into this problem myself today. It's not a problem any more thanks to you!