Hello all I have an JS array like the following:
var associativeArray = [];
associativeArray["1"] = "First";
associativeArray["2"] = "Second";
associativeArray["3"] = "Third";
Now I need to use jquery to use the words like First, Second from the array and auto link them to a certain URL on the page. For example:
Lets say the current page has the following line: Third comes after Second and Second comes after First. So here all these keywords like First, Second and Third should be converted to First. The trick is that each word should be linked only once and if a word is already linked then it should not be linked again.
Hope I have been able to explain what exactly is needed. Please help me out. Many many thanks in advance for your kind help!