I have a textarea element what i want to limit to, lets say, 100 chars. my current task is to give a visual feedback to the user. Starting with empty box it should be "100 chars left".
Now, i added a javascript function charsLeft() to the textarea's onChange but it works only 50% as intended. It only updates the div containing the number when i leave (focus) the textarea and not as i type. how do i go about to do that? So that my user can see, as they type, how many chars they have left in my textarea?