Q:

Simple jQuery problem

This one should be easy
I've got this HTML
<table class="PageNumbers">
<tr>
    <td colspan="3">text3
    </td>
</tr>
<tr>
    <td colspan="2">text
    </td>
    <td>text2
    </td>
</tr>
<tr>
    <td>moretext
    </td>
    <td>moretext2
    </td>
<td>moretext3
    </td>
</tr>
</table>

I need to change the colspan of the first rows first column to one
This is what i've got
$('.PageNumbers tr:first td:first').attr('colspan') = '1'

Doesn't seem to work though
Any ideas?
Thanks

A:

You're really close I think. Try this.
$('.PageNumbers tr:first td:first').attr('colspan', '1');

Also, I think by specs class names are supposed to be lowercase? It shouldn't stop anything from working though.

