我正在关注来自http://jsfiddle.net/ubrcq/ 的示例,
但我似乎无法理解。以下是我的代码
<html>
<head>
<script type="text/javascript">
$('#hours').change(function() {
$('#hours_text').val( this.value );
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<select name="hours" id="hours" class="time">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
</select>
<input type="text" id="hours_text" name="hours_text" value="01">
</body>
</html>