-1

How can I get values from check boxes by clicking the radio button?

I have three check boxes:

  • upc
  • price
  • sku

I have one radio button "selected check boxes". When I click the radio button I want the values of selected check boxes.

How can I do that?

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
psr
  • 25
  • 7
  • 1
    What do you mean by "radio button"? Normally that means [something like a set of checkboxes but you can only select one at a time](https://en.wikipedia.org/wiki/Radio_button). It's not something you'd generally click to perform an action. – ChrisGPT was on strike Dec 13 '16 at 14:44

1 Answers1

0

you can look to this amazing example JSF 2 radio buttons example.

You will care about two points in your radioButton: the itemValue (it's the real value that you send to your JSF managedBean) and the itemLabel (it's the value that the user see).

about how to perform something like that (in JavaScript) you can learn about it How to get value of selected radio button?

Hope that helped you.

Community
  • 1
  • 1
Yagami Light
  • 1,756
  • 4
  • 19
  • 39