• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Values From Hidden Columns of a Table

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a table with 4 columns: Column A, Column B, Column C, and Column D.

I display only two columns (Column A and Column B) in my web page. For example:

Colum C is average height and Column D is average weight.

I know how to get the value of Column A or Column B when a row is highlighted (i.e., selected):

But I need to get the values of Column C and Column D of that row; i.e. selectedGenderAverageHeight and selectedGenderAverageWeight. Please advise what to do. Thank you very much.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are columns C and D rendered to the page? You code is not showing them. They have to be rendered in order for JavaScript to be able to see them. You can hide them with CSS.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic