hi all, i' hav this question where i have a radio button and select one of 2 choices, whichever i select hav to display in the input box but it doesnt work
here is the code
plz help
here is the code
Code:
<html> <head> <script language="JavaScript"> function display(){ { frm_browser.txt_display.value=frm_broswer.txt_browser.checked.options[frm_browser.txt_browser.selectedIndex].value } </script> </head> <body> <form name="frm_browser"> Which browser is your favorite<br> <input type=radio name="txt_browser" value="explorer" checked Onchange=display()>Microsoft Internet Explorer<br> <input type=radio name="txt_browser" value="firefox">Mozilla Firefox <br> <input type=text name="txt_display" > </form> </html>
Comment