I have an input field. And I want that it shows the (...) at the end of my text when I hit a specific number of characters.
I heard something about Substring
but I don't know how to use it.
Here is my Input field. The data-limit
shows at which point the text is to long.
<input class="controlinput" id="metadescription" data-limit="156" data-class=".metadescription" type="text" >
And here is where the text will display when I type it in the input field.
<span class="metadescription"> </span>