-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.html
More file actions
29 lines (27 loc) · 812 Bytes
/
3.html
File metadata and controls
29 lines (27 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
function SetData(a) {
//alert(a);
console.info(a);
}
$(function () {
// $("#city").on("change", function () { alert($(this).val()); });
$('#city').change(function () {
SetData($(this).val());
//console.info(event.data.a.length);
});
});// onchange="SetData(this);"
</script>
</head>
<body>
<select id="city">
<option value="12">ffff1</option>
<option value="234">ffff2</option>
</select>
</body>
</html>