you need to select the onLoad to No Wrap in head option from the drop-down list below Frameworks & Extensions .
update FIDDLE
jsfiddle documentation
The second drop-down list refers to Code Wrap with the default setting of onLoad .
There are 4 choices:
Onload:
wrap the code so that it runs in the onLoad window event
onDomReady:
wrap the code so that it fires in the onDomReady window event
no wrap - in <head> :
do not wrap JavaScript code, put it in the <head> section
no wrap - in <body> :
do not wrap JavaScript code, put it in the <body> section
source share