Show value of Radio button | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Show value of Radio button

How to show the value of submitted radio button on the screen?

7th Apr 2022, 2:03 PM
Gaganpreet singh
Gaganpreet singh - avatar
3 Antworten
0
In front-end or back-end? answer depends on that ...
7th Apr 2022, 2:21 PM
Ipang
0
Front
7th Apr 2022, 2:33 PM
Gaganpreet singh
Gaganpreet singh - avatar
0
You can use Javascript ... 1. Collect all radio buttons using querySelectorAll() or getElementsByTagName() 2 Use a loop to map click event of each radio button collected in step 1 to a function where you wrote instructions (code) to display the value, wherever you so wish.
7th Apr 2022, 2:42 PM
Ipang