-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHide-Showjquer.html
More file actions
58 lines (49 loc) · 1.21 KB
/
Copy pathHide-Showjquer.html
File metadata and controls
58 lines (49 loc) · 1.21 KB
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
<html>
<style>
#para{
font-family: 'Times New Roman', Times, serif;
color: blue;
height: 2px;
}
</style>
<body>
<p id="para">I am studying engineering I am studying engineering I am studying engineering I am studying engineering<br>I am studying engineering<br></p>
<div id="li">
<ul>
<li>fifth</li>
<li>fourth</li>
<li>third</li>
<li>second</li>
<li>first</li>
</ul>
</div>
<div id="box" style="background:#98bf21;height:100px;width:100px;margin:6px;"></div>
<button id="but" type="submit">click me</button>
<script src="jq\jquery-3.4.1.js"></script>
<script>
/*$("#but").click(function(){
$("#para").hide();
})*/
/*$("#but").click(function(){
$("#para").show();
})*/
/*$("#but").click(function(){
$("#para").toggle();
})*/
/*$("#but").click(function(){
$("#para").slideUp(4000);
})*/
/*$("#but").click(function(){
$("#para").slideDown();
})*/
/*$("#but").click(function(){
$("#para").slideToggle("slow");//can be slow,fast or milliseconds
})*/
$(document).ready(function(){
$("#but").click(function(){
$("#box").animate({height: "300px"});
})
})
</script>
</body>
</html>