This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

function for radio button  RSS feed

 
akshaj nampelly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a function for a radio button which to be selected a single row for search results. Based on that radio button selection I have carry that row to next page.

Any pointers on this function, I have to include that in my jsp page of search results.

Akshaj
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give the radio button a value that corresponds to the row, submit the form and you know what is selected. I am not sure what you are after exactly. Are you trying to avoid hitting the db again?

Eric
 
akshaj nampelly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric

yep, I am avoiding to hitting db again.

Just have to carry one of many records I got by search into next page.

Akshaj
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a little ugly, but it gets the job done. It finds the row that is selected and dumps the cell values into hidden elements. You can submit the form and grab the values from the hidden elements.



Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!