클라이언트select에서 선택한 값 가져오기 (비value)

1533 단어 select
<html> 
<head> 
<script language="javascript"> 
function selectInput(choose) 
{   
     document.f1.text1.value=choose.options[choose.selectedIndex].text;  
} 
</script> 


</head> 
<body> 
<form name="f1"> 
<input name="text1" type="text" value=" " /> 
<select name="Month" onchange="selectInput(this)"> 
           <option    value="01">January</option> 
           <option    value="02">February</option> 
           <option    value="03">March</option> 
           <option    value="04">April</option> 
           <option    value="05">May</option> 
           <option    value="06">June</option> 
           <option    value="07">July</option> 
           <option    value="08" selected="selected">August</option> 
           <option    value="09">September</option> 
           <option    value="10">October</option> 
           <option    value="11">November</option> 
           <option    value="12">December</option> 
</select> 
</form> 
</body> 
</html> 


좋은 웹페이지 즐겨찾기