I'm trying to create a form, where is radio buttons and a input-text field, and when that input field is active, a radio button should become checked... I can't get it working (obviously). Here's my code:
Code: Select all
<form name="frm1">
<input name="radio1" type="radio" value="1" /> 1<br />
<input name="radio2" type="radio" value="2" /> 2<br />
<input name="txtfield" maxsize="25" type="text" onFocus="document.frm1.radio2.checked == true" />
</form>
And all I get is an error from firebug. I don't know javascript so I fail
