-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOmidList.html
72 lines (62 loc) · 3.06 KB
/
OmidList.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html >
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>لیست امید سینا</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
console.log("welcome");
$.getJSON( "data/listOmid.json", function( data ) {
console.log(data);
$.each( data, function( key, val ) {
console.log(val.province);
$("#sel1").html($("#sel1").html()+ "<option>" + val.province + "</option>" );
});
});
});
</script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="assets/css/jumbotron-narrow.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<body>
<div id="province" style="float: right; margin: 45px">
<form role="form">
<div class="form-group">
<label for="sel1" style="float: right">استان</label>
<select class="form-control" id="sel1" onchange="parts()">
</select>
</div>
</form>
</div>
<div id="cities" style="margin: 45px ; float: right">
<form role="form">
<div class="form-group">
<label for="sel1" style="float: right">حوزه</label>
<select class="form-control" id="sel2" onchange="names()">
</select>
</div>
</form>
</div>
<div style="float: right; clear: right; margin: 45px">
<ul id="name" style="text-align: right" type="none">
</ul>
</div>
</body>
<script src="JS.js" type="text/javascript"></script>
</html>