SlideShare a Scribd company logo
jQuery




         Copyright © 2005-2011 JUSTPLAYER Co.,Ltd. All Rights Reserved.
• jQuery
• jQuery
•
•
jQuery
jQuery

1.                  MIT
2. CSS
3.                            UI
4.


   •   30kb
   •   javaScript         (
             )
jQuery
<head>
…
<script src=“jquery-1.6.2.min.js” type=“text/javascript”></script>
…
</head>



•                           $
• jQuery                     $                    (※$                )
jQuery

•       head
• jQuery
<head>
…
<script src="jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">

       $(document).ready(function(){


       });
</script>
…
</head>
jQuery
• javaScript




•

               DIV
• javaScript




$(document).ready(function(){



      $("#btn_hoge").click(function(){

           $("#fuga").show();
      });
});
• javaScript




$(document).ready(function(){



      $("#btn_hoge").click(function(){

            $("#fuga").show();
      });
});



      hoge
• javaScript




$(document).ready(function(){



      $("#btn_hoge").click(function(){

            $("#fuga").show();
      });
});



      hoge
• javaScript




$(document).ready(function(){



      $("#btn_hoge").click(function(){

            $("#fuga").show();
      });
});



      hoge                      fuga
• javaScript




$(document).ready(function(){



      $("#btn_hoge").click(function(){

            $("#fuga").show();
      });
});



      hoge                      fuga
(Selectors)
                       •         ○○
                           CSS               jQuery




$(“#hoge”)          id=“hoge”

$(“.hoge”)          class=“hoge”
$(“p”)              <p>
$(“p.hoge”)         <p class=“hoge”>
$(“#hoge p”)        id=“hoge”      <p>
$(“#hoge, #fuga”)   id=“hoge”    id=”fuga”
(Events)
            •                    javaScript   onClick
                onMouseOver
                 on




click
dblclick
focus
keydown
mouseover
change
ready
(Manipulation,Attributes,CSS,Effects)
                   •
                            CSS




      append                            $(‘#hoge’).append(‘<p>                </p>’);

      remove                            $(‘#hoge’).remove();

      attr                              $(‘#image’).attr(‘src’, ‘/images/picture.jpg’);

      removeAttr                        $(‘.check’).removeAttr(‘checked’);

CSS   css                               $(‘.style).css(‘color’, ‘#ff0000’);

      show                              $(‘#hoge’).show();

      hide                              $(‘#hoge’).hide();

      fadeIn                            $(‘#hoge’).fadeIn();

      fadeOut                           $(‘#hoge’).fadeOut();

      toggle                            $(‘#hoge’).toggle();
•      click



$("#btn_hoge").click( function(){
    $("#fuga").show();
} );
•      click



$("#btn_hoge").click( function(){
    $("#fuga").show();
} );
•        click



$("#btn_hoge").click(


    );
•        click



$("#btn_hoge").click(


    );


function(){
     $("#fuga").show();
}
•        click



$("#btn_hoge").click(


    );


function(){               function showFuga(){
     $("#fuga").show();       $("#fuga").show();
}                         }
• javaScript

•



    //
    "ABCDEFG".slice(2, 4);

    //
    document.write("         ");
• javaScript

•



    //
    "ABCDEFG".slice(2, 4);

    //
    document.write("                    ");


    //
    $("#btn_hoge").click( function(){
       $("#fuga").show();
    } );
HTML
•        HTML


<input id=”hoge” type=”button” onClick=”(   )” />



                   javaScript

    js
(Selectors)




                           (Events)


       (Manipulation,A
       ttributes,CSS,Eff
             ects)
jQuery入門
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

           $("#fuga1").show(‘slow’);
            $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
    fuga1
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

           $("#fuga1").show(‘slow’);
            $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
    fuga1
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

           $("#fuga1").show(‘slow’);
            $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
    fuga1                 fuga2
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

           $("#fuga1").show(‘slow’);
            $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
    fuga1                 fuga2 500
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
                          fuga2 500
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
                               500
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
                               500
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
•



    $("#div_hoge").find(‘.btn_hoge’).click( function(){

          $("#fuga1").show(‘slow’);
           $("#fuga2").hide(500);
    } );



    id=”div_hoge”   btn_hoge
find
•

      $("#div_hoge").find(‘.btn_hoge’)
    <div id=”div_hoge”>
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.text” type=”text” value=”      ” />
    </div>
    <div id=”div_fuga”>
      <input class=”.btn_hoge” type=”button” value=”      ” />
      <input class=”.btn_hoge” type=”button” value=”      ” />
    </div>
find
•

      $("#div_hoge").find(‘.btn_hoge’)
    <div id=”div_hoge”>
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.text” type=”text” value=”      ” />
    </div>
    <div id=”div_fuga”>
      <input class=”.btn_hoge” type=”button” value=”      ” />
      <input class=”.btn_hoge” type=”button” value=”      ” />
    </div>
find
•

      $("#div_hoge").find(‘.btn_hoge’)
    <div id=”div_hoge”>
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.btn_hoge” type=”button” value=”       ” />
     <input class=”.text” type=”text” value=”      ” />
    </div>
    <div id=”div_fuga”>
      <input class=”.btn_hoge” type=”button” value=”      ” />
      <input class=”.btn_hoge” type=”button” value=”      ” />
    </div>
show         hide
•

    $("#fuga1").fadeIn(‘slow’);
    $("#fuga2").fadeOut(500);


            slow

            normal

            fast

            500          0.5

(    )      2000         2
jQuery入門
jQuery
•                          …





    $(document).ready( function(){


   } );
jQuery
•                              …





        $(document).ready( function(){


       } );


    document
jQuery
•                              …





        $(document).ready( function(){


       } );


    document
jQuery
•                              …





        $(document).ready( function(){


       } );


    document
document
$(document).ready( function(){

} );
• document              DOM
• DOM    XML   HTML              form input
javaScript
        DOM

//1

document.form[0].elements[0]

//1

document.form[0].elements[0].value

// id    hoge_btn

document.getElementByID(“hoge_btn”)
HTML DOM

          document

          <html>


<head>    <body>


<title>    <div>     <form>


                     <input>
HTML DOM

          document

          <html>


<head>    <body>


<title>    <div>     <form>


                     <input>
$()
$(“hoge_btn”)   ←
$(document)     ←DOM

$()                     DOM
                    jQuery
jQuery




              id=”hoge_btn”
                                jQuery
“hoge_btn”    DOM


    (1)             (2)                  (3)
                          DOM   jQuery
document
              jQuery
  DOM


        (1)            (2)
              jQuery
DOM
jQuery
    DOM


                  (“#fuga”)get(0)
(“#fuga”)                             id=”fuga”
jQuery                                DOM




                (“.btn_hoge”)get(0)   class=”btn_hoge”
                                      1     DOM
(“.btn_hoge”)
jQuery                                class=”btn_hoge”

                (“.btn_hoge”)get(1)   2     DOM
ready
            •

            •



$(document).ready( function(){

} );



ready
$(document).ready( function(){


   } );
$(document).ready

<head>
<script type="text/javascript">
  $(“#fuga”).show();
</script>
</head>
$(document).ready

<head>
<script type="text/javascript">
  $(“#fuga”).show();                    #fuga
</script>
</head>                           (1)
$(document).ready

<head>
<script type="text/javascript">
  $(“#fuga”).show();                    #fuga
</script>
</head>                           (1)




 HTML       <head>                (2)
                                                …
$(document).ready

<head>
<script type="text/javascript">
  $(“#fuga”).show();                    #fuga
</script>
</head>                           (1)
<body>
<div id=”fuga”>
<p>
…
 HTML       <head>                (2)
</p>
</div>                                          …
…
</body>
</html>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){
    $(“#fuga”).show();
} );
</script>
</head>




  HTML        <head>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){          document
    $(“#fuga”).show();
} );
</script>                         (1)
</head>




  HTML        <head>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){
    $(“#fuga”).show();
} );
</script>
</head>




  HTML        <head>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){
    $(“#fuga”).show();
} );
</script>
</head>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){
    $(“#fuga”).show();
} );
</script>
</head>

<body>
<div id=”fuga”>
<p>
…
</p>
</div>
…
</body>
</html>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){
    $(“#fuga”).show();
} );
</script>
</head>

<body>
<div id=”fuga”>
<p>
…
</p>
</div>                            (2)
…
</body>
</html>
$(document).ready

<head>
<script type="text/javascript">
$(document).ready( function(){          #fuga
    $(“#fuga”).show();
} );
</script>                         (3)
</head>

<body>
<div id=”fuga”>
<p>
…
</p>
</div>                            (2)
…
</body>
</html>
jQuery

More Related Content

PDF
Javascript and jQuery for Mobile
PDF
Jquery Framework
DOCX
Documentacion edderson callpa_ortiz
PDF
Sis quiz
TXT
Miniray.php
PPTX
咩星征服計劃 用 Js 征服地球 Part III
PDF
Feeds. использование и создание плагинов. Feeds API
PDF
Working With Ajax Frameworks
Javascript and jQuery for Mobile
Jquery Framework
Documentacion edderson callpa_ortiz
Sis quiz
Miniray.php
咩星征服計劃 用 Js 征服地球 Part III
Feeds. использование и создание плагинов. Feeds API
Working With Ajax Frameworks

What's hot (19)

TXT
New text document (2) 2
TXT
Blogger template-squeeze-page-angelogrande
PPTX
10 Programación Web con .NET y C#
PDF
Symfony2でMongoDBと仲良くする方法
PPTX
Asp .net Jquery
TXT
Index1
DOCX
Php codigos interfaces fredy guzman cusihunca
PDF
Drupal Cms Prezentace
TXT
With enter
PDF
jQuery for beginners
PDF
Intro to jQuery UI
PDF
UI実装におけるコーディングあれこれ
PDF
jQueryチュートリアル
DOCX
Un juego creado en php
PDF
โปรแกรมที่มากับโปรแกรม Microsoft Windows 7
KEY
JS for Rails developers
PDF
Як досвід компанії перетворився на фреймворк
DOCX
Dennis zapana perez
PDF
Introducción a Bolt
New text document (2) 2
Blogger template-squeeze-page-angelogrande
10 Programación Web con .NET y C#
Symfony2でMongoDBと仲良くする方法
Asp .net Jquery
Index1
Php codigos interfaces fredy guzman cusihunca
Drupal Cms Prezentace
With enter
jQuery for beginners
Intro to jQuery UI
UI実装におけるコーディングあれこれ
jQueryチュートリアル
Un juego creado en php
โปรแกรมที่มากับโปรแกรม Microsoft Windows 7
JS for Rails developers
Як досвід компанії перетворився на фреймворк
Dennis zapana perez
Introducción a Bolt
Ad

Viewers also liked (14)

PPT
第6回天下一武道会
PDF
【AWS Summit2013】チームラボ流クラウドスピードクッキング~この講演中にゼロからサービス一個立ちあげます~
PPTX
2011年11月 JAWS-UG「上司を説得してAWSを使わせる3つのポイント」
PDF
クラウドとAWSの説明
PDF
知っておいて損はない AWS法務関連
PDF
Linux Performance Tools
PDF
SAP on AWS 実際の導入例と導入効果
PPTX
超入門クラウド&AWS
PDF
SAP on AWS紹介資料 - Dec, 2014
PDF
20130124_アプリ分析&解析手法
PDF
これでAWSマスター!? 初心者向けAWS簡単講座
PDF
セキュリティを捉えてクラウドを使うためのポイント
PDF
いまさら聞けないAWSクラウド - Java Festa 2013
PDF
20140628_jaws-ug_クラウド女子会_HPC科あゆみ先生 #jawsug
第6回天下一武道会
【AWS Summit2013】チームラボ流クラウドスピードクッキング~この講演中にゼロからサービス一個立ちあげます~
2011年11月 JAWS-UG「上司を説得してAWSを使わせる3つのポイント」
クラウドとAWSの説明
知っておいて損はない AWS法務関連
Linux Performance Tools
SAP on AWS 実際の導入例と導入効果
超入門クラウド&AWS
SAP on AWS紹介資料 - Dec, 2014
20130124_アプリ分析&解析手法
これでAWSマスター!? 初心者向けAWS簡単講座
セキュリティを捉えてクラウドを使うためのポイント
いまさら聞けないAWSクラウド - Java Festa 2013
20140628_jaws-ug_クラウド女子会_HPC科あゆみ先生 #jawsug
Ad

jQuery入門

  • 1. jQuery Copyright © 2005-2011 JUSTPLAYER Co.,Ltd. All Rights Reserved.
  • 4. jQuery 1. MIT 2. CSS 3. UI 4. • 30kb • javaScript ( )
  • 6. jQuery • head • jQuery <head> … <script src="jquery-1.6.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ }); </script> … </head>
  • 9. • javaScript $(document).ready(function(){ $("#btn_hoge").click(function(){ $("#fuga").show(); }); });
  • 10. • javaScript $(document).ready(function(){ $("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge
  • 11. • javaScript $(document).ready(function(){ $("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge
  • 12. • javaScript $(document).ready(function(){ $("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge fuga
  • 13. • javaScript $(document).ready(function(){ $("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge fuga
  • 14. (Selectors) • ○○ CSS jQuery $(“#hoge”) id=“hoge” $(“.hoge”) class=“hoge” $(“p”) <p> $(“p.hoge”) <p class=“hoge”> $(“#hoge p”) id=“hoge” <p> $(“#hoge, #fuga”) id=“hoge” id=”fuga”
  • 15. (Events) • javaScript onClick onMouseOver on click dblclick focus keydown mouseover change ready
  • 16. (Manipulation,Attributes,CSS,Effects) • CSS append $(‘#hoge’).append(‘<p> </p>’); remove $(‘#hoge’).remove(); attr $(‘#image’).attr(‘src’, ‘/images/picture.jpg’); removeAttr $(‘.check’).removeAttr(‘checked’); CSS css $(‘.style).css(‘color’, ‘#ff0000’); show $(‘#hoge’).show(); hide $(‘#hoge’).hide(); fadeIn $(‘#hoge’).fadeIn(); fadeOut $(‘#hoge’).fadeOut(); toggle $(‘#hoge’).toggle();
  • 17. click $("#btn_hoge").click( function(){ $("#fuga").show(); } );
  • 18. click $("#btn_hoge").click( function(){ $("#fuga").show(); } );
  • 19. click $("#btn_hoge").click( );
  • 20. click $("#btn_hoge").click( ); function(){ $("#fuga").show(); }
  • 21. click $("#btn_hoge").click( ); function(){ function showFuga(){ $("#fuga").show(); $("#fuga").show(); } }
  • 22. • javaScript • // "ABCDEFG".slice(2, 4); // document.write(" ");
  • 23. • javaScript • // "ABCDEFG".slice(2, 4); // document.write(" "); // $("#btn_hoge").click( function(){ $("#fuga").show(); } );
  • 24. HTML • HTML <input id=”hoge” type=”button” onClick=”( )” /> javaScript js
  • 25. (Selectors) (Events) (Manipulation,A ttributes,CSS,Eff ects)
  • 27. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } );
  • 28. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
  • 29. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
  • 30. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1
  • 31. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1
  • 32. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1 fuga2
  • 33. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1 fuga2 500
  • 34. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga2 500
  • 35. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge 500
  • 36. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge 500
  • 37. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
  • 38. $("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
  • 39. find • $("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
  • 40. find • $("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
  • 41. find • $("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
  • 42. show hide • $("#fuga1").fadeIn(‘slow’); $("#fuga2").fadeOut(500); slow normal fast 500 0.5 ( ) 2000 2
  • 44. jQuery • … $(document).ready( function(){ } );
  • 45. jQuery • … $(document).ready( function(){ } ); document
  • 46. jQuery • … $(document).ready( function(){ } ); document
  • 47. jQuery • … $(document).ready( function(){ } ); document
  • 48. document $(document).ready( function(){ } ); • document DOM • DOM XML HTML form input
  • 49. javaScript DOM //1 document.form[0].elements[0] //1 document.form[0].elements[0].value // id hoge_btn document.getElementByID(“hoge_btn”)
  • 50. HTML DOM document <html> <head> <body> <title> <div> <form> <input>
  • 51. HTML DOM document <html> <head> <body> <title> <div> <form> <input>
  • 52. $() $(“hoge_btn”) ← $(document) ←DOM $() DOM jQuery
  • 53. jQuery id=”hoge_btn” jQuery “hoge_btn” DOM (1) (2) (3) DOM jQuery
  • 54. document jQuery DOM (1) (2) jQuery DOM
  • 55. jQuery DOM (“#fuga”)get(0) (“#fuga”) id=”fuga” jQuery DOM (“.btn_hoge”)get(0) class=”btn_hoge” 1 DOM (“.btn_hoge”) jQuery class=”btn_hoge” (“.btn_hoge”)get(1) 2 DOM
  • 56. ready • • $(document).ready( function(){ } ); ready
  • 58. $(document).ready <head> <script type="text/javascript"> $(“#fuga”).show(); </script> </head>
  • 59. $(document).ready <head> <script type="text/javascript"> $(“#fuga”).show(); #fuga </script> </head> (1)
  • 60. $(document).ready <head> <script type="text/javascript"> $(“#fuga”).show(); #fuga </script> </head> (1) HTML <head> (2) …
  • 61. $(document).ready <head> <script type="text/javascript"> $(“#fuga”).show(); #fuga </script> </head> (1) <body> <div id=”fuga”> <p> … HTML <head> (2) </p> </div> … … </body> </html>
  • 62. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ $(“#fuga”).show(); } ); </script> </head> HTML <head>
  • 63. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ document $(“#fuga”).show(); } ); </script> (1) </head> HTML <head>
  • 64. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ $(“#fuga”).show(); } ); </script> </head> HTML <head>
  • 66. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ $(“#fuga”).show(); } ); </script> </head> <body> <div id=”fuga”> <p> … </p> </div> … </body> </html>
  • 67. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ $(“#fuga”).show(); } ); </script> </head> <body> <div id=”fuga”> <p> … </p> </div> (2) … </body> </html>
  • 68. $(document).ready <head> <script type="text/javascript"> $(document).ready( function(){ #fuga $(“#fuga”).show(); } ); </script> (3) </head> <body> <div id=”fuga”> <p> … </p> </div> (2) … </body> </html>

Editor's Notes