This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get the row object of display object in javascript

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a display tag in my jsp. When user clicks on a particular row, i was to call a javascript function and check the row selected and perform some functions like changing the look of row and get some data from it and compare with some thing else.

There are a few examples which i found after googling but none of them seems to be working Any idea how to achieve this?

Thanks in advance.

Aman
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you investigated jQuery for this?
 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the soln. I used getElementByTagName("tbody") which is dynamically generated by display tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic