aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to get the class name of 'th' under a table  from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to get the class name of Watch "how to get the class name of New topic
Author

how to get the class name of 'th' under a table from javascript

jack fe
Greenhorn

Joined: Nov 10, 2009
Posts: 16
Guys:
I have a known value got from server.
If it is 0, then I need to know class name of <th> for 'Site ID'.
If it is 1, then I need to know class name of <th> for 'Site Name'.

how to use javascript to do that?
Thanks.

code:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Code all spaced out


Code combined to a line



And if you were using jQuery:



Eric

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the class name of 'th' under a table from javascript