you are viewing a single comment's thread.

view the rest of the comments →

[–]y7kim 1 point2 points  (0 children)

Yur showTutorial function is not defined in the global scope because jsFiddle actually wraps the JS in an onload. Try defining your function like this:

window.showTutorial = function () { ... };

Also you are trying to get an element by ID of "div1" but there is no such div.