LearnFast.Ninja

How to import jQuery from Google in html

You want to use jQuery from Google server? Add this script tag in the head of your html page.

Step 1: Add this script tag in the head of your html page.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

Working example code:

<!DOCTYPE html>

<html>

<head>

    <title>Untitled Page</title>

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    <script type="text/javascript">

        $().ready(function () {

            $("#Success_Div").show(500);

        });

    </script>

    <style type="text/css">

        #Success_Div

        {

            background-color:#ddffee;

            color:#347c17;

            border-radius4px;

            border1px solid #ccc;

            box-shadow0px 0px 5px #ccc;

            box-shadow0px 0px 15px #ccc;

            padding10px;

        }

    </style>

</head>

<body>

    <div id="Success_Div" style="display: none;">

        Text

    </div>

</body>

</html>


Tags

jquery

import jquery-google