• 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

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

 
Greenhorn
Posts: 25
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic