How to remove class(class with selector) using jquery ?
.div-group > .swipey > li
Here the sample code
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("li").removeClass("div-group swipey >li");
});
});
</script>
<style>
.div-group > .swipey > li {
font-size: 120%;
color: red;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<div class="div-group">
<ul class="swipey">
<li class="intro">This is a paragraph.</li>
<li class="intro">This is another paragraph.</li>
</ul>
</div>
<button>Remove the "intro" class from all p elements</button>
</body>
</html>
Edit (clarification from comments on an answer)
In the css there's
.div-group > .swipey > li {
font-size: 120%; color: red;
}
I didn't want to use that, can I remove that using jquery ?