I have the following HTML Code.
<select onChange="TestCall()">
<option>Text1</option>
<option>Text2</option>
<option>Text3</option>
<option>Text4</option>
</select>
My JavaScript have a simple alert message like below.
function TestCall()
{
alert("Test");
}
Check the following Jsfiddle. I have added my script in the javascript area of jsfiddle. It is not working.
But If i move script block inside the HTML area of jsfiddle is working. Check the below one.
What wrong in my code? Any Idea?

Frameworks & Extensions, choose No wrap in<head>or<body>element.addEventListener('change', TestCall, false);