Text countdown on textarea

<textarea name="companyDescription" maxlength="2000" id="companyDescription" rows="10" cols="30" onkeyup="countDown(this);"></textarea> <div id="countDownValue"></div> Java script function countDown (obj){ var element = document.getElementById("countDownValue"); var maxLength = obj.maxLength; element.innerHTML="Allowed characters remaining "+(maxLength-obj.value.length); }

Continue ReadingText countdown on textarea