Jump to content

javascript and html forms


acidglitter

Recommended Posts

This should work ;-)

<form>
<select id="select" name="select">
<option value="Option1">Option1</option>
<option value="Option2">Option2</option>
</select><input type="checkbox" onchange="document.forms[0].select.value='Option2';" />
</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.