Onclick event not firing on jsfiddle.net

Cronin O'M picture Cronin O'M · Feb 2, 2012 · Viewed 23.2k times · Source

I'm testing some javascript on jsfiddle and for some reason I can't get a function to fire on a button click. Any advice?

jsfiddle link

Answer

dk123 picture dk123 · Apr 23, 2013

In the Frameworks & Extensions panel, set onLoad to No wrap - in <body>.

It took me a while to figure this out.