Is it possible to implement a counter that directly modifies the tag text using jQuery / Javascript? For example, if I had 2 tags:
<a>hello</a>
<a>bye</a>
After running the jQuery / JS function, this will happen:
<a>[1]hello</a>
<a>[2]bye</a>
I cannot use the CSS counter as I need a script to edit the HTML directly.
source
share