Just some commentary… and I’m using an iPad, so the helpfulness is limited.
- You might not need jQuery. http://youmightnotneedjquery.com
- If you’re trying to manipulate text in an element, based on data from an array, you might want to look at this… https://photics.com/free-template-tuesday-11-tumult-hype-multilingual/ …or this… https://photics.com/free-template-tuesday-7-tumult-hype-capitals/
There’s no jQuery needed. It’s basically a JavaScript Array and using innerHTML to replace the text.