eLBX Online 2021 | June 22 - 24


Join us for a FREE, 3-day virtual conference featuring industry experts and eLearning thought leaders. Learn about critical topics such as eLearning accessibility, learning experience design, course authoring, virtual reality, and gamification. Register today!
CHECK IT OUT

JavaScript / JQuery

andrew-robertson
andrew-robertson Community Member Posts: 129 ☆ Superstar ☆
Hi there - I need a bit of a push in the right direction.

Situation: Trying to run JQuery command but I am getting the $ is not a function error when previewing in a browser.

Process:
  • Add OnShowRunJS to the page level with the following code: $(".accordian").first().addClass("current");
  • Preview in Chrome Browser
From my understanding and the photos below, I do have JQuery available to use.


Am I wrong in assuming that JQuery can be used with a OnShowRunJS action?
Andrew R.
Developing content since 2010 using a mixed bag of tools.

Best Answer

Answers

  • andrew-robertson
    andrew-robertson Community Member Posts: 129 ☆ Superstar ☆
    Well that resolved my problem. Now I have to do some JQuery work. Appreciate the insight and education as always @timk !!!
    Andrew R.
    Developing content since 2010 using a mixed bag of tools.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!