Is it possible to have a pure Javascript text remaining counter that outputs the value in a <span> or <p> tag rather than an input field? I can only find Jquery solutions or ones that output in input fields.
Is it possible to have a pure Javascript text remaining counter that outputs the
Share
Have seen over the net that a lot of people are wanting a remaining characters counter that is pure Javascript and doesn’t preview the number in an input box. I was messing around with JSFiddle lastnight and did a little work around and was able to get the remaining characters to show in other tags such as
<span>. So I would just like to share this with everyone and hope it might come in handy.HTML:
Javascript:
Here is also a working JSFiddle
Note: Should anyone want to contribute to the script to make it better, please feel free to do so. I am not an expert in Javascript so it most likely a more user friendly solution.
Kind Regards