Hello! There is a form:
<div id="browsers"> <p><b>Браузер:</b><Br> <input type="radio" name="browser" value="ie"> Internet Explorer<Br> <input type="radio" name="browser" value="opera"> Opera<Br> <input type="radio" name="browser" value="firefox"> Firefox<Br> </p>
How to use JavaScript (without using libraries like jQuery) to find out the value value
, if the user clicked on the radio button?
Those. when clicking on Internet Explorer
in the 'ie' console, when clicking on Opera
- 'opera'