Add event responders to elements in a loop with Jquery
<p>Lets say I have a page with 5 images, and I get an array of them all by</p>

<pre><code>var images = document.getElementsByTagName("img");
</code></pre>

<p>Then I want to add a mousemove event to each one, my first instinct would be to do this:</p>

<pre><code>for (var i = 0; i &lt; images.length; i++){
    $(images[i]).mousemove(function(e){
        //do stuff
    });
}
</code></pre>

<p>but that doesn't work, so how would this be possible?</p>
