Javascript Ajax jQuery Html PHP Example Quiz New MORE
Need a Website Or Web Application Or Any Help.Contact Us: +91 9437911966 (Whatsapp) Note: Paid Service

How to remove class in jQuery with demo

<!DOCTYPE html>
<html lang="en">
<head>
    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
    <meta charset="utf-8">
    <title>How to remove class in jQuery</title>
    <style>
        .container {
            width: 100%;
            border: 4px solid green;
            padding: 20px;
            background-color: orange;
        }
    </style>
</head>
<body>
    <div class="container">
        <h3>jQuery Tutorial</h3>
    </div>
    <br>
    <button type="button">Remove Class</button>
    <script>
        $(document).ready(function() {
            $("button").click(function() {
                $("div").removeClass("container");
            });
        });
    </script>
</body>
</html>

Run it yourself