Radek
Radek

Reputation: 11091

How to define my own js function in jsfiddle?

I want to test how my own function update works on jsfiddle but when I click the button I get an error that update is not defined.

How can I use my own functions on jsfiddle?

Upvotes: 6

Views: 1057

Answers (1)

Andrew Shepherd
Andrew Shepherd

Reputation: 45232

Two problems:

The first problem is that you have some extra text at the end of the script:

})();

The second problem is that you are wrapping the function definitions inside the onDomReadyfunction.

Change this option to no wrap(head) and it will work.

Upvotes: 9

Related Questions