Lecture 113 - Changing Styles - Changingcssdothtml
Lecture 113 - Changing Styles - Changingcssdothtml
html
!
!
<!doctype html>
<html>
<head>
<title>Learning jQuery</title>
<style>
#circle {
width:200px;
height:200px;
background-color:green;
border-radius:100px;
.square {
width:300px;
height:300px;
background-color:red;
margin-top:10px;
</style>
</head>
<body>
<div id="circle"></div>
<div class="square"></div>
<div class="square"></div>
<script>
$("#circle").click(function() {
$(".square").fadeOut();
});
</script>
</body>
</html>