Thursday 6 May 2021

JQUERY17

 <html>

<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script>

function removeclasses()

{

$("#item").removeClass();

}

</script>

<style type="text/css">

p.center {

text-align: center;

color:blue;

}

p.large {

font-size: 200%;

}

</style>

</head>

<body>

<p id="item" class="center large">This program i am using two classes.</p>

<input type="button" value="Click to remove css classes" onclick="removeclasses()" />

</body>

</html>