<html>
<head>
<script>
function getTextValue(){
    document.all.text1.value 
        = document.all.sel1.options[document.all.sel1.selectedIndex].value + "-"
        + document.all.sel2.options[document.all.sel2.selectedIndex].value + "-"
        + document.all.sel3.options[document.all.sel3.selectedIndex].value;
}
</script>
</head>
<body><select name='sel1' onchange='getTextValue()'>
<option value='a1'>a1</option>
<option value='b1'>b1</option>
<option value='c1'>c1</option>
</select><select name='sel2' onchange='getTextValue()'>
<option value='a2'>a2</option>
<option value='b2'>b2</option>
<option value='c2'>c2</option>
</select><select name='sel3' onchange='getTextValue()'>
<option value='a3'>a3</option>
<option value='b3'>b3</option>
<option value='c3'>c3</option>
</select><input type='text' name='text1'></input></body>
</html>简单写了个页面,存成html就能看效果