I have a form that when a key is pressed or text pasted and cutted from a textarea the amount of characters left will appear but on the first keypress the function doesnt work but on the second one and so in it does. My code is below.I have a form that when a key is pressed or tex