-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGettingOutputs.html
More file actions
33 lines (26 loc) · 817 Bytes
/
Copy pathGettingOutputs.html
File metadata and controls
33 lines (26 loc) · 817 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
<html>
<head>
<title>Setting and Gettig VALUE</title>
</head>
<body>
<button id="btn1">SET VALUE</button>
<button id="btn2">GET VALUE</button>
<p id="p1">this is paragrph</p>
</body>
<script
src="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous">
</script>
<script type="text/javascript">
$(document).ready(function(){
// from this code the font size is chajging and it is shown in the alrt box-->
$("#btn1").click(function(){
$("#p1").css("font-size","25px")
})
$("#btn2").click(function(){
alert($("#p1").css("font-size"))
})
})
</script>
</html>