Show first four children with jQuery
<p>I have a <code>&lt;div&gt;</code> and in that div there are several <code>&lt;a&gt;</code> tags. With jQuery I want to show the first four <code>&lt;a&gt;</code> tags.</p>

<p>I have managed that with the following code:</p>

<pre><code>$('div.gallery-hor.read-more a:nth-of-type(-1n+4)').show();
</code></pre>

<p>There's one problem: IE* and later do not support the <code>:nth-of-type()</code> code.</p>

<p>Is there a workaround width jQuery to fix this problem cross-browser?</p>
