Does input radio with output to different text works in a table? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does input radio with output to different text works in a table?

I have made 2 versions of input, radio and select. Each option give another text corresponding with the name. I have put radio in a table can that work together? The 2 versions are almost identical but the radio doesn't work but state each time "undefined". See my codes ending with (radio) and (select) thanks.

21st Oct 2018, 5:28 PM
Arno Bertens
Arno Bertens - avatar
4 Answers
+ 3
Here's your edited code: https://code.sololearn.com/WK4gvNIEKO0o/?ref=app Hth, cmiiw
21st Oct 2018, 9:20 PM
Ipang
+ 3
Thank you. I had found a another a what lesser solution with <input type="radio" onclick="alert('hello');" But yours is much better and so fast. Thanks a lot.
21st Oct 2018, 9:36 PM
Arno Bertens
Arno Bertens - avatar
+ 2
Cool Thanks.
21st Oct 2018, 10:06 PM
Arno Bertens
Arno Bertens - avatar
+ 1
Yess radio can work with tables. To fix the problem you need to make for every input a onclick function i made two examples (Praios and Rondra) so you can see how it works. https://code.sololearn.com/WS64QILV5Bgx/#html
21st Oct 2018, 10:01 PM
Patrick Broersma