Bug Tracker

Modify

Ticket #9697 (closed bug: invalid)

Opened 2 years ago

Last modified 15 months ago

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

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

Description

Hi, I have the following example code: <table class="tableConsulta">

<tbody>

<tr>

<td colspan="4">

&nbsp;

</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>

&nbsp;

</td> <td>

&nbsp;</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.

Change History

comment:1 Changed 2 years ago by timmywil

  • Owner set to dyego.ti@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to selector

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.

comment:2 Changed 23 months ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

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!

comment:3 Changed 23 months ago by anonymous

Anybody?

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.