0

How to pass form element value on the page

how to pass text or radio button value on the same page: like "choose: 1 or 2" and after that print below (outside of the form) "your choice is 1"

9th Jan 2017, 12:08 PM
Denis
1 Resposta
+ 4
<input type=radio value=1 id=rad> <p id=para> You can do document.getElementById("para").innerHTML = document.getElementById("rad").value If you have a code, might be easier.
9th Jan 2017, 12:16 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar