My textarea can count string/character when user enter input. Here is my jsfiddle.
My problem is I want set condition mean when string/character is 158 above, I want show message inside <div id="message">We will deduct 2 credit from your account</div> and same when string/character is 316 above the message will update and show<div id="message">We will deduct 3 credit from your account</div> and continue ..
Example:
158 *2
158 = We will deduct 2 credit from your account
316 = We will deduct 3 credit from your account
474 = We will deduct 4 credit from your account
632 = We will deduct 5 credit from your account
...