Adding an option

admin

Administrator
Staff member
Can anyone tell me the syntax for adding a new option at the bottom of a select list. Thanks.

function addoption()
{
Add an option to select box called Contact
Populate the value for this new option
Populate the text for this new option
}

<select name=Contact>
<option value=http://www.webdeveloper.com/forum/archive/index.php/1>Fred</option>
<option value=2>Jim</option>
</select>
 
Back
Top