How to compare multiple radio button's value with string?
I'm wondering how to get the multiple selected radio button's value and compare with string?
If people click more than one radio buttons, then show all the text that compare with the radio's value. I can now show the text that compare with only one radio button's value, but if I click more than one radio buttons, it still shows the text that I select at first time.
For example, in this case:
JSFiddle If I click "apple", it shows "apple apple" that's correct, but if I click more than one buttons like "apple" and "banana", it should shows "apple apple banana", but it didn't, how to achieve that goal? Thx