The following code should change the value of the input named “voto” by clicking on the radio button, but it doesn’t why?
Thanx!
<input name="cualquiera" type="radio" value="<%=encuestas(respuesta)%>" onclick="javascript:document.getElementById('voto').value=<%=encuestas%>"/><%=encuestas%>
<input type="text" name="voto" />
cyber1
2
The input object must have an id
-Bill
I have changed it to : id = “voto”, but i still dont have solved the problem.
cyber1
4
The following will work
<input name="cualquiera" type="radio" value="respuesta" onclick="javascript:document.getElementById('voto').value='test'"/>
<input type="text" name="voto" id="voto" />
-Bill