Your code doesn’t appear to be included on site 2
so it is never run. On site 1
I can see the scripts that initiate the toggling…
First is the word array builder which is found in the <head>
tag.
Second is the toggle
function and initiator.
Both of which do not appear to be included in site 2
.
UPDATE
As mentioned in the comments, your script is actually included however, your paragraph contains none of the words in your array.
Your script is searching the above paragraph for: vocabulary
, lexicon
and lexicons
all of which are not in the content.
4
solved How to start debugging jQuery if there seems to be no error?