{"action":"opened","issue":{"url":"https://api.github.com/repos/aaronrussell/jquery-simply-countable/issues/43","labels_url":"https://api.github.com/repos/aaronrussell/jquery-simply-countable/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/aaronrussell/jquery-simply-countable/issues/43/comments","events_url":"https://api.github.com/repos/aaronrussell/jquery-simply-countable/issues/43/events","html_url":"https://github.com/aaronrussell/jquery-simply-countable/issues/43","id":99072501,"number":43,"title":"counter doesn't update when control text is set using javascript","user":{"login":"wkrick","id":10203734,"avatar_url":"https://avatars.githubusercontent.com/u/10203734?v=3","gravatar_id":"","url":"https://api.github.com/users/wkrick","html_url":"https://github.com/wkrick","followers_url":"https://api.github.com/users/wkrick/followers","following_url":"https://api.github.com/users/wkrick/following{/other_user}","gists_url":"https://api.github.com/users/wkrick/gists{/gist_id}","starred_url":"https://api.github.com/users/wkrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkrick/subscriptions","organizations_url":"https://api.github.com/users/wkrick/orgs","repos_url":"https://api.github.com/users/wkrick/repos","events_url":"https://api.github.com/users/wkrick/events{/privacy}","received_events_url":"https://api.github.com/users/wkrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T22:06:59Z","updated_at":"2015-08-04T22:06:59Z","closed_at":null,"body":"Currently, the counter only updates on keyup, blur, or paste events.\r\nSo when you set the value using javascript, the counter doesn't change.\r\nMy current workaround is to manually trigger a \"blur\" event after setting the value....\r\n\r\n$('#myTextarea').val(\"some text\");  // counter doesn't update\r\n$('#myTextarea'),blur(); // make counter recognize text change\r\n\r\nI'm not sure if there's an easy solution to this issue that will work with all browsers, but I think it should be a future enhancement if it is possible."}}