Can a counter be implemented that changes the text of a tag directly using jQuery/Javascript? For example, if there were two tags like this:
<a>hello</a>
<a>bye</a>
After executing the jQuery/JS function, the result would be:
<a>[1]hello</a>
<a>[2]bye</a>
A CSS counter cannot be used as the script needs to edit the HTML directly.