1<!doctype html>234<meta charset= "UTF-8" >5<meta name= "Generator" content= "EditPlus?" >6<meta name= "Author" content= "" >7<meta name= "Keywords" content= "" >8<meta name= "Description" content= "" >9<title> get value</title> in the drop-down menuTen One<body> A<script type= "Text/javascript" > - functionGetValue (Jhgfds) { - alert (JHGFDS); the } - functionGetName (GFDSA) { - alert (GFDSA); - } +</script> - +<select onchange= "GetValue (this.value)" > A<option value= "" >--Please select City--</option> at<option value= "001" > Shijiazhuang </option> -<option value= "002" > Shijiazhuang </option> -<option value= "003" > Baoding </option> -</select> - -<input type= "text" onblur= "GetName (this.value)" > in -</body> toRequirement: When the user chooses one of these items, gets the value of the selected item (provided that the selected item changes, event: Change time, Time handle: onchange) The Change event occurs when the drop-down list of selected items changes. What is this? What is This.value again? This represents the current drop-down list Object This.value represents the current drop-down list for the value of the selected item Blur event onblur Event handle: Triggers when the focus is lostjs-get the value in the drop-down list (change and Blur)