Index of elements, jQuery or Javascript

Posted by ozsenegal on Stack Overflow See other posts from Stack Overflow or by ozsenegal
Published on 2010-04-05T17:36:18Z Indexed on 2010/04/05 17:43 UTC
Read the original article Hit count: 240

Filed under:
|

I've a table that contains 3 columns. I need to bind an event that fires off whenever one of those columns is clicked using jQuery.

However, I need to know the index of the column clicked.

i.e: First column (index 0), Second column (index 1), Third column (index 2), and so on...

How can I do that?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about index