1

Using PHP I am displaying row's of data in a table. Each row is a link. Instead of using an <a> tag in each table cell I decided to use Jquery to make each <tr> tag clickable, except for the first <tr> which is the table header, and the first <td> because it contains a checkbox.

Check my Fiddle for an example, and code: http://jsfiddle.net/Draven/eQznR/12/

It worked fine with Jquery 1.7.2, but since they updated to 1.8.0 today it no longer works.

I'd like a solution without having to use Jquery 1.7.2 because obviously it's not the proper way of doing it.

Thank you.

EDIT: Thanks to Šime Vidas it's because I have a number as a class (class=1).

Draven
  • 1,467
  • 2
  • 19
  • 47

1 Answers1

5

It's the "1" class name that screws it up for version 1.8. If you use class names that start with a letter, it will work in 1.8:

Live demo: http://jsfiddle.net/eQznR/14/

Šime Vidas
  • 182,163
  • 62
  • 281
  • 385
  • Actually starting a class or id with a number is not valid html: http://stackoverflow.com/questions/4089006/can-xhtml-and-html-class-attributes-value-start-with-a-number jQuery is moving toward using native browser selectors and that may be the issue. – Fresheyeball Aug 10 '12 at 15:56
  • @Fresheyeball: At least IDs starting with digits are valid in HTML 5. – Felix Kling Aug 10 '12 at 15:59
  • @Fresheyeball It would have made more sense if you linked the relevant section in the corresponding specification, instead of another SO thread. `:P` Anyways, the link is http://www.w3.org/TR/css3-syntax/#characters – Šime Vidas Aug 10 '12 at 16:00