Surely this jQuery shouldn't work
<p>I have written a piece of code by mistake that works. Now i need it explained to me because its confusing me how its working:</p>

<pre><code>$(altsValue[i].css('border', '5px solid red'));
</code></pre>

<p>'altsValue' is an array of Objects, constructed like this: <code>altsValue.push($(this));</code></p>

<p>'i' is a counter in a loop.</p>

<p>The problem is that the first line is surely one jQuery selector. Yet it does set the CSS of the element in question to the correct property!?</p>

<p>Can someone demystify this for me please?</p>
