1

I have the following fiddle scripts which I implemented in my website

https://jsfiddle.net/jfriend00/n4mKw/

Unfortunately when I have applied them, they do not function for example the "quotes" are not changing as they are in the fiddle.

below is the codes I have used in my website

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="./js/event.js" type="text/javascript"></script>

and the "quotes" script, bit modified by me

<div class="quotes">
<li>Version: 99.62T</li>
<li>Drop: 99%</li>
<li>Exp: 7500x</li>
<li>Status: <font color="green">ONLINE</font></li>
</div>
<div class="quotes">
<li>Accounts: 12,889</li>
<li>Characters: 15,349</li>
<li>Guilds: 345</li>
<li>Online Users: 245</li>
</div>

also Here is the website and you can see how the quotes are acting on it.

Can someone help me out? thanks.

P.S: I am a begginer on this, so can you please dumb it down for me? :)

LeLennyZ
  • 11
  • 3
  • 1
    Why are you using `li` as a child of a `div` ? And it is not 1998, do not use font tag. – epascarello Mar 28 '20 at 13:18
  • to keep the "design" of the little circle showing in front of the text – LeLennyZ Mar 28 '20 at 13:19
  • *"The HTML
  • element is used to represent an item in a list. It must be contained in a parent element: an ordered list (
      ), an unordered list (
      ), or a menu (
    )."* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li)
  • – epascarello Mar 28 '20 at 13:21
  • Please open the developer tools with F12 and tell us if there are any errors – Guerric P Mar 28 '20 at 13:21
  • 1
    Use your developer tools! `event.js:30 Uncaught TypeError: Cannot set property 'innerHTML' of null at change (event.js:30)` – epascarello Mar 28 '20 at 13:21
  • https://stackoverflow.com/questions/14028959/why-does-jquery-or-a-dom-method-such-as-getelementbyid-not-find-the-element – epascarello Mar 28 '20 at 13:23
  • sorry guys, i have no idea what you are talking about, pressed f12 but i dont know how to use this .. – LeLennyZ Mar 28 '20 at 13:24
  • @LeLennyZ it's fine just take a look at my answer – Guerric P Mar 28 '20 at 13:25