change and onchange don't work on my computer. what might be causing this?
<p>The following code should pop up an alert box whenever I select a file or make a change to the textbox and click out of it.</p>

<p>I believe the code SHOULD work, but it doesn't. Isolating the code snippets on JSFiddle and running them even works.</p>

<p>Is anything wrong with my code? If not, could something on my computer be preventing this code from working?</p>

<pre><code>&lt;html&gt;

&lt;head&gt;

    &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
    &lt;script&gt;
    $(document).ready(function() {
        document.getElementById("file").onchange(function() {
           alert($(this).val()); 
        });

        $('#text').change(function() {
           alert($(this).val()); 
        });
    });

    &lt;/script&gt;
&lt;/head&gt;


&lt;body&gt;
    &lt;input id="file" type="file" name="file" /&gt;
    &lt;input id="text" type="text" name="text" /&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>
