LoginSignup
0
0

More than 5 years have passed since last update.

Introduction of jQuery

Last updated at Posted at 2013-03-27
index.html
<!DOCTYPE html>
<html lang="ja">
<head>
     <meta charset="utf-8">
     <title>jQuery Practice</title>
</head>
<body>
     <h1>jQuery</h1>

     // Reading jQuery
     <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
     <script>
          // When Readling html has done, start to execute jQuery
          $(document).ready(function(){
               // Write here jQuery Code
          }
     </script>
</body>
</html>

As comments, you should get ready to use and code jQuery like above.

But this is not normally used style.
You can rewrite like this.

index.html
<script>
    $(function(){
        hogehoge
    }
</script>

And one more, if you want to use jQuery in local to some reasons, e.g. keep site speed, you should download jQuery code from here->http://jquery.com/, and write like this.

index.html
<script src="~~(path)~~~/jquery-1.9.1.min.js"></script>

anyway this is first step to use jQuery.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0