Wednesday, 9 August 2017

Jquery class selector

You can select a HTML tag with its class name which is used by tag. When you know class name then you can add custom HTML from a function of java script using jquery class selector.

    <title>Girfa Student Help</title>
    <script src=""></script>


        $(document).ready(function () {
            $("button").click(function () {
                $(".para").html("<h2>Jquery Class Changer</h3><hr><br>You can change content of container by class name.Jquery find class through out find the tag and change its content accordingly");

    <button>Get Data</button><br />
    <p class="para">



No comments:

Post a Comment