Class Selectors Example in JQuery

The . class selector selects all elements with the specific class. The class refers to the class attribute of an HTML element. The class attribute is used to set a particular style for several HTML elements.

Source Code

<!DOCTYPE html>
<html lang="en">
    <title>Class Selector Example</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!------JQUERY CDN---->
    <script src=""></script>
    <h3>Class Selector Example</h3>
    <p>This para will be hide</p>
    <button type="button">Hide Para</button>
    <button type="button" class="showBtn">Show Para</button>
To download raw file Click Here

Learn All in Tamil © Designed & Developed By Tutor Joes