Any shorter way to add attributes to specified elements using jQuery?
<p>Assuming I have a wide table with many columns, and I want to add <code>colspan=2</code> to:</p>

<p><strike><code>td#2, td#10, td#15</code></strike></p>

<p><code>td#3, td#11, td#16</code></p>

<p>Do I have to do it specifically: </p>

<pre><code>$("table td").eq(2).attr('colspan','2')
$("table td").eq(10).attr('colspan','2')
$("table td").eq(15).attr('colspan','2')
</code></pre>

<p>Or should I use <code>filter()</code>?</p>

<p>Is there any shorter way?</p>
