What is the Jquery ? (Part1)


Jquery is the Javascript library which has been written using javascript. Which simplifies the Javascript pragramming.

Jquery Library contains the following features
1. HTML/DOM manipulation
2. CSS manupulation
3. HTML event methods
4. Effect and animations
5. Ajax
6. Utilities

Sample code for Jquery Example which is used for hiding the paragraph

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../Scripts/jquery.min.js"></script>
    <script>
        $(function () {
            $("p").click(function () {
                $(this).hide();
            });
        });
    </script>
</head>
<body>
    <p>This is the line1</p> <br />
     <p>This is the line2</p> <br />
    <p>This is the line3</p> <br />

</body>
</html>

Note: here $(this).hide() is used for hiding the current paragraph line

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.