Skip to main content

Timeline for How to include jQuery properly?

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Aug 25, 2018 at 2:37 comment added Tedinoz You are quite right. Apologies. I was rushing to flag the issue and being in a different time zone, I couldn't followup immediately. Please Refer my alternative answer.
Aug 24, 2018 at 13:48 comment added maverick That's the only way I/anyone can help
Aug 24, 2018 at 13:48 comment added maverick Please add the code you wrote.
Aug 24, 2018 at 12:19 comment added Tedinoz I tested this in its strict html format, and the code works. Then I created a plugin, enqueued jQuery and the script, created a template and linked it to a page. The ".each" part of the script runs but the Console reports an error "Uncaught ReferenceError: toggle is not defined at HTMLSpanElement.onclick". It's probably a very simple issue, but there's seems to be something in WordPress that affects the running of the code.
Aug 23, 2018 at 18:02 history answered maverick CC BY-SA 4.0