Add mouse event to colgroup or col?

You might be able to achieve what you're after using the nth-child selector: api.jquery.com/nth-child-selector $('tr > td:nth-child(1)'). Length; // col 1 $('tr > td:nth-child(2)'). Length; // col 2 $('tr > td:nth-child(3)').

Length; // col 3.

You might be able to achieve what you're after using the nth-child selector: api.jquery.com/nth-child-selector/ $('tr > td:nth-child(1)'). Length; // col 1 $('tr > td:nth-child(2)'). Length; // col 2 $('tr > td:nth-child(3)').

Length; // col 3 ...

I'm not sure that a colgroup can be given handlers that would react to events over any cell in the group. You could alternatively give each cell in the group a specific class. Although, if there are a "lot", it wouldn't perform well.

Column1 ... cols1 = $(". C1"). Css('background','#EEE'); Once you get a handle on cols1, keep it until the DOM structure of the table cells change.

You won't have to keep iterating the DOM via the selector to get the collection of DOM elements which match.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions