{{theTime}}

Search This Blog

Total Pageviews

JQuery Example to dynamically change the CSS

<!DOCTYPE html>
<html>
<head>
<script>
$(document).ready(function(){
    $("#b1").click(function(){
        $("body").addClass("important");
    });
});
</script>
 
<style>
.important {
    font-weight: bold;
    font-size: xx-large;
background-color: green;
body {
    background-color: lightblue;
}

h1 {
    color: orange;
    text-align: center;
}

p {
    font-family: verdana;
    font-size: 20px;
}
</style>
</head>
<body>
<h1>JQUERY Example to change the BackGround color</h1>

<center><button id="b1">Change background-color: green</button></center>

</body>
</html>

No comments:

Java Sequenced Collection Java Sequenced Collection The Sequenced Collection feature was introduced in Jav...