How to select second td in detailsview datarow?

The first question is: do you need to support IE6? If the answer is yes then you can’t do it. If not the easiest solution is probably:

td + td { ... }

Even more modern (and less supported) is:

td:nth-child(2) { ... }

This presupposes that you’re not willing or not able to put a class or other identifier on the second td so you can do it much more easily.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)