document.frmName.SecCombo.value="default_value";
The above Is not standard or cross browser, you should use getElementById (elementid)
var combo = document.getElementById("combo2");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Combo change</title>
<script type="text/javascript">
function combo2_OnChange()
{
var combo = document.getElementById("combo2");
combo.value = "0";
}
</script>
<style type="text/css">
body
{
font-family: verdana;
}
#fieldset1
{
padding: 15px; text-align: center; width: 150px;
}
#combo1
{
font-weight: bold;
color: red;
}
#combo2
{
color: green;
}
</style>
</head>
<body>
<fieldset id="fieldset1">
<legend>Choose options</legend>
<select id="combo1" onchange="combo2_OnChange();">
<option selected="selected" value="0">Option 1</option>
<option value="1">Option 2</option>
</select>
<hr />
<select id="combo2">
<option selected="selected" value="0">Default</option>
<option value="1">First</option>
<option value="2">Second</option>
<option value="3">Third</option>
</select>
</fieldset>
</body>
</html>
hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68