chrismassey
Programmer
Hello,
I posted a message yesterday in the HTML/CSS forum which was...
And I recieved this code in response...
The response above works great however there is a "one step delay". For example if I click on a radio button for the first time nothing is printed in the text box. When I click another radio button the value that is printed into the textbox is from the first radio button I clicked. Therefore there is a 1 step delay.
I really need this delay to be removed, however I have no idea how?
Thanks
Chris
I posted a message yesterday in the HTML/CSS forum which was...
Code:
Hello,
I am trying to create a group of radio buttons, and if one is selected then I want to print its value into a textbox live (interactively). I have tried to find a solution by searching the web but I haven't found anything that explains how. I believe this is a job for javascript but I am stumped.
Thanks,
Chris
And I recieved this code in response...
Code:
<form name=myform>
<input type=text name="mytextbox">
<input type=radio name="myradiobutton" value="Somevalue"
OnChange="document.myform.mytextbox.value=this.value;">
<input type=radio name="myradiobutton" value="Othervalue"
OnChange="document.myform.mytextbox.value=this.value;">
</form>
The response above works great however there is a "one step delay". For example if I click on a radio button for the first time nothing is printed in the text box. When I click another radio button the value that is printed into the textbox is from the first radio button I clicked. Therefore there is a 1 step delay.
I really need this delay to be removed, however I have no idea how?
Thanks
Chris