<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mo ni test</title>
</head>
<link href="css/test.css" type="text/css" rel="stylesheet" />
<script text="text/javascript" src="js/jquery-1.9.0.js"></script>
<script text="text/javascript" src="js/test.js"></script>
<body>
<div style="position:relative;">
<span style="margin-left:100px;width:18px;overflow:hidden;">
<select id="select" style="width:118px;height:20px;margin-left:-100px" >
<option value="a"> AAA </option>
<option value="a"> BBB </option>
<option value="a"> CCC </option>
<option value="a"> DDD </option>
<option value="a"> EEE </option>
<option value="a"> FFF </option>
<option value="a"> GGG </option>
</select>
</span>
<input id="input1" name="box" style="width:93px;position:absolute;left:1px;"/>
</div>
</body>
</html>
==================================================================================
对应的js
$(document).ready(
function()
{
var str=$("#select option:selected").text();
$("#input1").val(str);
$("#select option").click(function(){
var str=$("#select option:selected").text();
$("#input1").val(str);
});
}
);