Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jquery function always returns contents of the same table cell, no matter which table cell i click

Status
Not open for further replies.

coldbohemia

Programmer
Jun 5, 2008
30
0
0
US
Hi all.
i have jquery function that's triggered by "onclick" from an html table cell (<td>)
with a class of 'tdcheck':

i then have an alert box that displays the contents of the next table cell which has a class="blank".
this cell is hidden, but i don't think that's the problem.

the function works, but always returns the value of the first table cell in the table,(with the class="blank")
no matter which table cell i click.

every row in the table has one table cell with class=tdcheck ,
and another table cell immediately next to it with class=blank.

can anyone help me with this?
thanks lots in advance.
 
 c:\trash\snippet.txt
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top