How do I output the values of radio buttons?

How do I output the value of val crazy radio buttons in the input and in the paragraph?

<input name="radio" type="radio" value="5">5
<input name="radio" type="radio" value="3">3
<input name="radio" type="radio" value="535">535

<input type="text" name="price" id="inp">
<p id="text"></p>
June 7th 19 at 14:26
1 answer
June 7th 19 at 14:28
Solution

Find more questions by tags JavaScriptjQuery