I'm creating a table in which each row represents an event booking.
When the user clicks a row then I am dynamically creating a row beneath the clicked row and using Ajax to pull in more data about that booking.
This is all working fine but I can't seem to create the new <td> elements with a suitable colspan attribute.
For example, I have 5 columns.
My new <tr> contains 2 <td> elements, the first should span 3 columns and the second span 2 columns.
When I create the elements they, obviously, only span a single column.
Setting an attribute for the <td> doesn't seem to work.
I'm going to continue pursuing this avenue as I think it should work so maybe my error is elsewhere, but if anyone can point me in the right direction I'd be most grateful.
<honk>*:O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
When the user clicks a row then I am dynamically creating a row beneath the clicked row and using Ajax to pull in more data about that booking.
This is all working fine but I can't seem to create the new <td> elements with a suitable colspan attribute.
For example, I have 5 columns.
My new <tr> contains 2 <td> elements, the first should span 3 columns and the second span 2 columns.
When I create the elements they, obviously, only span a single column.
Setting an attribute for the <td> doesn't seem to work.
I'm going to continue pursuing this avenue as I think it should work so maybe my error is elsewhere, but if anyone can point me in the right direction I'd be most grateful.
<honk>*:O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.