-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbasic_js.php
More file actions
49 lines (46 loc) · 807 Bytes
/
Copy pathbasic_js.php
File metadata and controls
49 lines (46 loc) · 807 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Basic Javascript</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body>
<!--
<div id="mydiv">
adfadfadf<br>
adfadfadf<br>
adfadfadf<br>
</div>
<div>
adf
adf
adafd
</div>
<a href="#" class="anc">Click Here</a>
<script type="text/javascript">
$(function(){
$('.anc').click(function(){
$('#mydiv').hide();
})
});
</script>-->
<div class="mydiv">
</div>
<a href="#" class="anc">Click Me</a>
<script type="text/javascript">
$(function(){
$('.anc').click(function(){
$.ajax({
url: 'test_ajax.php',
data: 'name=Anwar&gender=male',
type: 'post',
success: function(res)
{
alert(res);
}
})
})
})
</script>
</body>
</html>