I just copied the code directly out of the article and it appears to work fine. Do you have any errors coming up? Or a typo perhaps?
I've also made the code available here: codepen.io/dcode-software/pen/ZEQMEjG
No i havent any error
EDIT now is correct i had a problem with w3 Total Cache
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I just copied the code directly out of the article and it appears to work fine. Do you have any errors coming up? Or a typo perhaps?
I've also made the code available here:
codepen.io/dcode-software/pen/ZEQMEjG
No i havent any error
EDIT now is correct i had a problem with w3 Total Cache