Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

on selecting a radio button in a table row the color of row should be changed

 
Shailesh Kumar Saxena
Greenhorn
Posts: 25
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends...

I am developing an employee registration module using struts 1.3.8 and hibernate.
I need to show a table that is generated dynamically to display all the registration requests.
My requirement is:

"in each row with all details of a particular employee 2 radio buttons are there for approval n reject.
If row is clicked(any where except radio buttons) color of entire row should be pink. If reject radio button is clicked the
color of entire row should change to red and on clicking approve radio button row color should be green."


Any help will be appriciated.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The use of Struts and Hibernate is irrelevant. That's all on the server. The only thing that matters to the client-side code is the HTML page that is sent to the browser.

So it sounds like you need to learn how to do a number of things:
  • Detect when a table row has been clicked.
  • Detect when a radio button has been clicked.
  • Discover which table row a clicked radio button resides within.
  • Chnage the background color of a table row.

  • Use of jQuery for all of this is highly recommended.

    Do you know any JavaScript? Any jQuery?
     
    Shailesh Kumar Saxena
    Greenhorn
    Posts: 25
    Hibernate Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Dear Bear Bibeault

    Thanks for your reply. I am a newbie in developement and know little bit of JavaScript. Could you please help me by providing some sample code for my problem.

    Thanks & Regards.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic