Skip to main content

Bug Tracker

Side navigation

#9697 closed bug (invalid)

Opened June 29, 2011 12:23PM UTC

Closed July 14, 2011 07:44AM UTC

Last modified March 14, 2012 03:14AM UTC

Problem with "td:even or td:odd" when used colspan in a previous line

Reported by: dyego.ti@gmail.com Owned by: dyego.ti@gmail.com
Priority: low Milestone: 1.next
Component: selector Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

I have the following example code:

<table class="tableConsulta">

<tbody>

<tr>

<td colspan="4">

 

</td>

</tr>

<tr>

<td>Name:</asp:Label>

</td>

<td>

<input type="text" id="txtName" />

</td>

<td>

Adress:

</td>

<td>

<input type="text" id="txtAddress" /> </td>

</tr>

<tr>

<td>

Label:

</td>

<td>

<input type="text" id="txtField" />

</td>

<td>

 

</td>

<td>

 </td>

</tr>

</tbody>

<tfoot>

<tr>

<td colspan="4" style="text-align:center">

Footer!!!

</td>

</tr>

</tfoot>

</table>

And Jscript:

$(document).ready(function () {

$('.tableConsulta tbody tr td:even').addClass('tdLabels');

$('.tableConsulta tbody tr td:odd').addClass('tdCampos');

$('.tableConsulta thead th').addClass('tdTitulo');

$('.tableConsulta tfoot tr td:even').addClass('tdFootImpar');

$('.tableConsulta tfoot tr td:odd').addClass('tdFootPar');

});

This code above not works correctly if I use colspan. But, if I remove the colspan code, my code runs correctly.

Attachments (0)
Change History (3)

Changed June 29, 2011 02:12PM UTC by timmywil comment:1

component: unfiledselector
owner: → dyego.ti@gmail.com
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsfiddle.net that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed July 14, 2011 07:44AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed July 14, 2011 12:42PM UTC by anonymous comment:3

Anybody?