SlideShare a Scribd company logo
Learning how to use jQuery #3
            YOSHIMURA Takahiro
            twitter: @yosshi
            yosshi@gmail.com
            http://www.greenplastic.net
            http://friendfeed.com/yosshi

            November 11, 2009
tungumál teanga taal gjuha lingua bahasa iaith мова keel
taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha
језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli
langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa
Bahasa valoda kalba limbă язык language
tungumál teanga taal gjuha lingua bahasa iaith мова keel
taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha




Languages
језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli
langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa
Bahasa valoda kalba limbă язык language
tungumál teanga taal gjuha lingua bahasa iaith мова keel
taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha
језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli
langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa
Bahasa valoda kalba limbă язык language
tungumál teanga taal gjuha lingua bahasa iaith мова keel taal idioma
lingua γλώσσα jezik språk idioma jazyk jezik lugha језик ภาษา wika
jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli langue език ngôn
ngữ ‫ שפה‬мова ‫ ﺯﺑ# # # # ##ﺎﻥ‬język linguagem јазик lingwa Bahasa valoda kalba
limbă язык language
for
Markup Engineer
Markup Engineer
• (X)HTML + CSS
Markup Engineer
• (X)HTML + CSS
• CMS Templates (MovableType, WordPress
  and so on)
Markup Engineer
• (X)HTML + CSS
• CMS Templates (MovableType, WordPress
  and so on)
• JavaScript
Markup Engineer
• (X)HTML + CSS
• CMS Templates (MovableType, WordPress
  and so on)
• JavaScript
• Accessibility, UI (not language anyway)
Markup Engineer
• (X)HTML + CSS
• CMS Templates (MovableType, WordPress
  and so on)
• JavaScript
• Accessibility, UI (not language anyway)
• Design (not language anyway)
Markup Engineer
• (X)HTML + CSS
• CMS Templates (MovableType, WordPress
  and so on)
• JavaScript
• Accessibility, UI (not language anyway)
• Design (not language anyway)
• English
Review



         http://www.flickr.com/photos/themastershakesignal/173060038/
#1
#1
•   ready hundler
#1
•   ready hundler
•   selectors
#1
•   ready hundler
•   selectors
•   css
#1
•   ready hundler
•   selectors
•   css
•   effects
#1
•   ready hundler
•   selectors
•   css
•   effects
•   events
#1
•   ready hundler
•   selectors
•   css
•   effects
•   events
•   method chain
#1
•   ready hundler
•   selectors
•   css
•   effects
•   events
•   method chain
•   selector
#2
#2
•   Attributes - DOM
#2
•   Attributes - DOM
    •   Attr - attr(name), attr(properties), attr(key,
        value), attr(key, fn), removeAttr(name)
#2
•   Attributes - DOM
    •   Attr - attr(name), attr(properties), attr(key,
        value), attr(key, fn), removeAttr(name)
    •   Class - addClass(class), removeClass(class),
        toggleClass(class), toggleClass(class, switch)
#2
•   Attributes - DOM
    •   Attr - attr(name), attr(properties), attr(key,
        value), attr(key, fn), removeAttr(name)
    •   Class - addClass(class), removeClass(class),
        toggleClass(class), toggleClass(class, switch)
    •   HTML - html(), html(val)
#2
•   Attributes - DOM
    •   Attr - attr(name), attr(properties), attr(key,
        value), attr(key, fn), removeAttr(name)
    •   Class - addClass(class), removeClass(class),
        toggleClass(class), toggleClass(class, switch)
    •   HTML - html(), html(val)
    •   Text - text(), text(val)
#2
•   Attributes - DOM
    •   Attr - attr(name), attr(properties), attr(key,
        value), attr(key, fn), removeAttr(name)
    •   Class - addClass(class), removeClass(class),
        toggleClass(class), toggleClass(class, switch)
    •   HTML - html(), html(val)
    •   Text - text(), text(val)
    •   Value - val(), val(val)
#2
•   Manipulation - DOM
#2
•   Manipulation - DOM
    •            - append(content), prepend(content),
        appendTo(content), prependTo(content)
#2
•   Manipulation - DOM
    •             - append(content), prepend(content),
        appendTo(content), prependTo(content)
    •            - after(content), before(content),
        insertAfter(content), insertBefore(content)
#2
•   Manipulation - DOM
    •             - append(content), prepend(content),
        appendTo(content), prependTo(content)
    •            - after(content), before(content),
        insertAfter(content), insertBefore(content)
    •                  - wrap(html), wrap(elem),
        wrapAll(html), wrapAll(elem),
        wrapInner(html), wrapInner(elem)
#2
•   Manipulation - DOM
    •      - replaceWith(content), replaceAll(selector)
#2
•   Manipulation - DOM
    •      - replaceWith(content), replaceAll(selector)

    •      - empty(), remove()
#2
•   Manipulation - DOM
    •      - replaceWith(content), replaceAll(selector)

    •      - empty(), remove()

    •        - clone(), clone(true)
#3
#3

• today
#3

• today
• more events
#3

• today
• more events
• combination of events, css, effects,
  attributes and manipulation
#3

• today
• more events
• combination of events, css, effects,
  attributes and manipulation
• samples and demos
Events
Events
• ready(fn)
• click(fn)
• hover(over, out)
Events
• ready(fn)
• click(fn)
• hover(over, out)
• focus(fn)
Events
• ready(fn)
• click(fn)
• hover(over, out)
• focus(fn)
• change(fn)
Events
• ready(fn)
• click(fn)
• hover(over, out)
• focus(fn)
• change(fn)
• keyup(fn)
Events - focus(fn)
$("input").focus(function() {
    $(this).next("span")
           .css('display', 'inline')
           .fadeOut(1000);
});
Events - change(fn)
$("select").change(function() {
    var str = "";
    $("select option:selected").each(function() {
        str += $(this).text() + " ";
    });
    $("div").text(str);
}).change();
Events - keyup(fn)
$("input").keyup(function() {
    $("div").text($(this).val());
}).keyup();




$(window).keyup(function(e) {
    var k = e.keyCode;
    $("div").text(e.keyCode);
    if (k == 13) $("div").append(' return');
});
Samples and Demos



              http://www.flickr.com/photos/neo_ii/4054300112/
Samples and Demos
Samples and Demos

• so-called “don’t click twice”
Samples and Demos

• so-called “don’t click twice”
• so-called “tab”
Samples and Demos

• so-called “don’t click twice”
• so-called “tab”
• so-called “roll over”
Samples and Demos
 • so-called “don’t click twice”
$("form").submit(function() {
    $("input[type=submit]").attr("disabled", "disabled");
});
Samples and Demos
 • so-called “tab”
// hide all content
$("#content > div").hide();

$("#nav li a").click(function() {
    // nav
    $("#nav li").removeClass("current");
    $(this).parent().addClass("current");
    // content
    $("#content > div").hide();
    var cpt = $(this).attr("href");
    $(cpt).show();
    return false;
});
Samples and Demos
  • so-called “roll over”
// preload
$("img.hover").each(function() {
    var preload = new Image;
    preload.src = this.src.replace(/^(.+)(.[a-z]+)$/, "$1_over$2");
});

// so-called roll over
$("img.hover").hover(
    function() {
        $(this).attr("src", function() { return $(this).attr('src').replace(/
^(.+)(.[a-z]+)$/, "$1_over$2"); } );
    },
    function() {
        $(this).attr("src", function() { return $(this).attr('src').replace(/
^(.+)_over(.[a-z]+)$/, "$1$2"); } );
    }
);
One More Thing



             http://www.flickr.com/photos/acaben/541334636/
http://www.flickr.com/photos/mikelowe/9696647/
Ajax



       http://www.flickr.com/photos/mikelowe/9696647/
Ajax
 • load(url, data, callback)
$("#trigger").click(function() {
    $("#wrapper").load("./sample.txt");
});
Ajax
 • jQuery.get(url, data, callback, type)
$("#trigger").click(function() {
    var num = $("select").val();
    $.get("./get.php",
          {id:num},
          function(data) {
              $("#wrapper").text(data);
          }
         );
});
thanks to
•   API reference
    •   http://docs.jquery.com/Main_Page
    •   http://semooh.jp/jquery/

•   jQuery Lesson Series
    •   http://woorkup.com/2009/10/05/jquery-lesson-series-introduction-to-
        selectors/
    •   http://woorkup.com/2009/10/14/jquery-lessons-how-to-interact-with-
        html-forms/
    •   http://woorkup.com/2009/10/22/jquery-lessons-series-how-to-implement-
        animations-of-css-properties/
    •   http://woorkup.com/2009/11/06/jquery-lessons-series-manipulate-css-
        classes/
thanks to
•   Flickr
    •   http://www.flickr.com/photos/themastershakesignal/173060038/
    •   http://www.flickr.com/photos/neo_ii/4054300112/
    •   http://www.flickr.com/photos/acaben/541334636/
    •   http://www.flickr.com/photos/mikelowe/9696647/
    •   http://www.flickr.com/photos/jenosaur/4051305996/

•   Others
    •   http://www.alink.co.jp/tech/wiki/index.php?jQuery%2F
          %2Fsubmit                    2

    •   http://www.aozora.gr.jp/cards/000148/files/775_14942.html
http://www.flickr.com/photos/jenosaur/4051305996/

More Related Content

KEY
Learning How To Use Jquery #5
PDF
The jQuery Divide
PDF
Using jQuery to Extend CSS
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
PDF
jQuery Essentials
PDF
Ruby is Awesome
PPTX
Jquery-overview
PPTX
jQuery
Learning How To Use Jquery #5
The jQuery Divide
Using jQuery to Extend CSS
Learning jQuery made exciting in an interactive session by one of our team me...
jQuery Essentials
Ruby is Awesome
Jquery-overview
jQuery

What's hot (17)

PDF
Leveraging the Power of Graph Databases in PHP
PDF
Leveraging the Power of Graph Databases in PHP
ODP
Introduction to jQuery
ODP
Php 102: Out with the Bad, In with the Good
PPT
jQuery Loves You
PPTX
jQuery Fundamentals
PPTX
Jquery introduction
PDF
Your JavaScript Library
PDF
Learning jQuery in 30 minutes
PDF
The Dom Scripting Toolkit J Query
PDF
jQuery%20on%20Rails%20Presentation
PDF
2018 PyCon Korea - Ring
PDF
Prototype & jQuery
PPT
JQuery introduction
PPT
A Short Introduction To jQuery
PPT
Propel sfugmd
PPT
Leveraging the Power of Graph Databases in PHP
Leveraging the Power of Graph Databases in PHP
Introduction to jQuery
Php 102: Out with the Bad, In with the Good
jQuery Loves You
jQuery Fundamentals
Jquery introduction
Your JavaScript Library
Learning jQuery in 30 minutes
The Dom Scripting Toolkit J Query
jQuery%20on%20Rails%20Presentation
2018 PyCon Korea - Ring
Prototype & jQuery
JQuery introduction
A Short Introduction To jQuery
Propel sfugmd
Ad

Similar to Learning How To Use Jquery #3 (20)

PDF
jQuery for beginners
PPTX
Jquery fundamentals
PPT
Jquery presentation
PDF
Web2.0 with jQuery in English
PDF
jQuery Loves Developers - Oredev 2009
ODP
Jquery- One slide completing all JQuery
PDF
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
PPTX
Web technologies-course 11.pptx
PPTX
Iniciando com jquery
PDF
Advanced guide to develop ajax applications using dojo
KEY
An in-depth look at jQuery
PPT
J query b_dotnet_ug_meet_12_may_2012
KEY
Week 4 - jQuery + Ajax
PPTX
PDF
Write Less Do More
PPTX
PDF
An Introduction to Jquery
PDF
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
PPTX
Jquery Complete Presentation along with Javascript Basics
PDF
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery for beginners
Jquery fundamentals
Jquery presentation
Web2.0 with jQuery in English
jQuery Loves Developers - Oredev 2009
Jquery- One slide completing all JQuery
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Web technologies-course 11.pptx
Iniciando com jquery
Advanced guide to develop ajax applications using dojo
An in-depth look at jQuery
J query b_dotnet_ug_meet_12_may_2012
Week 4 - jQuery + Ajax
Write Less Do More
An Introduction to Jquery
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
Jquery Complete Presentation along with Javascript Basics
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The AUB Centre for AI in Media Proposal.docx
sap open course for s4hana steps from ECC to s4
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Learning How To Use Jquery #3

  • 1. Learning how to use jQuery #3 YOSHIMURA Takahiro twitter: @yosshi yosshi@gmail.com http://www.greenplastic.net http://friendfeed.com/yosshi November 11, 2009
  • 2. tungumál teanga taal gjuha lingua bahasa iaith мова keel taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa Bahasa valoda kalba limbă язык language tungumál teanga taal gjuha lingua bahasa iaith мова keel taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha Languages језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa Bahasa valoda kalba limbă язык language tungumál teanga taal gjuha lingua bahasa iaith мова keel taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ # # # # # ##ﺎﻥ‬język linguagem јазик lingwa Bahasa valoda kalba limbă язык language tungumál teanga taal gjuha lingua bahasa iaith мова keel taal idioma lingua γλώσσα jezik språk idioma jazyk jezik lugha језик ภาษา wika jazyk sprog Sprache dil språk nyelv ॿॿॿॿ kieli langue език ngôn ngữ ‫ שפה‬мова ‫ ﺯﺑ# # # # ##ﺎﻥ‬język linguagem јазик lingwa Bahasa valoda kalba limbă язык language
  • 3. for
  • 6. Markup Engineer • (X)HTML + CSS • CMS Templates (MovableType, WordPress and so on)
  • 7. Markup Engineer • (X)HTML + CSS • CMS Templates (MovableType, WordPress and so on) • JavaScript
  • 8. Markup Engineer • (X)HTML + CSS • CMS Templates (MovableType, WordPress and so on) • JavaScript • Accessibility, UI (not language anyway)
  • 9. Markup Engineer • (X)HTML + CSS • CMS Templates (MovableType, WordPress and so on) • JavaScript • Accessibility, UI (not language anyway) • Design (not language anyway)
  • 10. Markup Engineer • (X)HTML + CSS • CMS Templates (MovableType, WordPress and so on) • JavaScript • Accessibility, UI (not language anyway) • Design (not language anyway) • English
  • 11. Review http://www.flickr.com/photos/themastershakesignal/173060038/
  • 12. #1
  • 13. #1 • ready hundler
  • 14. #1 • ready hundler • selectors
  • 15. #1 • ready hundler • selectors • css
  • 16. #1 • ready hundler • selectors • css • effects
  • 17. #1 • ready hundler • selectors • css • effects • events
  • 18. #1 • ready hundler • selectors • css • effects • events • method chain
  • 19. #1 • ready hundler • selectors • css • effects • events • method chain • selector
  • 20. #2
  • 21. #2 • Attributes - DOM
  • 22. #2 • Attributes - DOM • Attr - attr(name), attr(properties), attr(key, value), attr(key, fn), removeAttr(name)
  • 23. #2 • Attributes - DOM • Attr - attr(name), attr(properties), attr(key, value), attr(key, fn), removeAttr(name) • Class - addClass(class), removeClass(class), toggleClass(class), toggleClass(class, switch)
  • 24. #2 • Attributes - DOM • Attr - attr(name), attr(properties), attr(key, value), attr(key, fn), removeAttr(name) • Class - addClass(class), removeClass(class), toggleClass(class), toggleClass(class, switch) • HTML - html(), html(val)
  • 25. #2 • Attributes - DOM • Attr - attr(name), attr(properties), attr(key, value), attr(key, fn), removeAttr(name) • Class - addClass(class), removeClass(class), toggleClass(class), toggleClass(class, switch) • HTML - html(), html(val) • Text - text(), text(val)
  • 26. #2 • Attributes - DOM • Attr - attr(name), attr(properties), attr(key, value), attr(key, fn), removeAttr(name) • Class - addClass(class), removeClass(class), toggleClass(class), toggleClass(class, switch) • HTML - html(), html(val) • Text - text(), text(val) • Value - val(), val(val)
  • 27. #2 • Manipulation - DOM
  • 28. #2 • Manipulation - DOM • - append(content), prepend(content), appendTo(content), prependTo(content)
  • 29. #2 • Manipulation - DOM • - append(content), prepend(content), appendTo(content), prependTo(content) • - after(content), before(content), insertAfter(content), insertBefore(content)
  • 30. #2 • Manipulation - DOM • - append(content), prepend(content), appendTo(content), prependTo(content) • - after(content), before(content), insertAfter(content), insertBefore(content) • - wrap(html), wrap(elem), wrapAll(html), wrapAll(elem), wrapInner(html), wrapInner(elem)
  • 31. #2 • Manipulation - DOM • - replaceWith(content), replaceAll(selector)
  • 32. #2 • Manipulation - DOM • - replaceWith(content), replaceAll(selector) • - empty(), remove()
  • 33. #2 • Manipulation - DOM • - replaceWith(content), replaceAll(selector) • - empty(), remove() • - clone(), clone(true)
  • 34. #3
  • 37. #3 • today • more events • combination of events, css, effects, attributes and manipulation
  • 38. #3 • today • more events • combination of events, css, effects, attributes and manipulation • samples and demos
  • 41. Events • ready(fn) • click(fn) • hover(over, out) • focus(fn)
  • 42. Events • ready(fn) • click(fn) • hover(over, out) • focus(fn) • change(fn)
  • 43. Events • ready(fn) • click(fn) • hover(over, out) • focus(fn) • change(fn) • keyup(fn)
  • 44. Events - focus(fn) $("input").focus(function() { $(this).next("span") .css('display', 'inline') .fadeOut(1000); });
  • 45. Events - change(fn) $("select").change(function() { var str = ""; $("select option:selected").each(function() { str += $(this).text() + " "; }); $("div").text(str); }).change();
  • 46. Events - keyup(fn) $("input").keyup(function() { $("div").text($(this).val()); }).keyup(); $(window).keyup(function(e) { var k = e.keyCode; $("div").text(e.keyCode); if (k == 13) $("div").append(' return'); });
  • 47. Samples and Demos http://www.flickr.com/photos/neo_ii/4054300112/
  • 49. Samples and Demos • so-called “don’t click twice”
  • 50. Samples and Demos • so-called “don’t click twice” • so-called “tab”
  • 51. Samples and Demos • so-called “don’t click twice” • so-called “tab” • so-called “roll over”
  • 52. Samples and Demos • so-called “don’t click twice” $("form").submit(function() { $("input[type=submit]").attr("disabled", "disabled"); });
  • 53. Samples and Demos • so-called “tab” // hide all content $("#content > div").hide(); $("#nav li a").click(function() { // nav $("#nav li").removeClass("current"); $(this).parent().addClass("current"); // content $("#content > div").hide(); var cpt = $(this).attr("href"); $(cpt).show(); return false; });
  • 54. Samples and Demos • so-called “roll over” // preload $("img.hover").each(function() { var preload = new Image; preload.src = this.src.replace(/^(.+)(.[a-z]+)$/, "$1_over$2"); }); // so-called roll over $("img.hover").hover( function() { $(this).attr("src", function() { return $(this).attr('src').replace(/ ^(.+)(.[a-z]+)$/, "$1_over$2"); } ); }, function() { $(this).attr("src", function() { return $(this).attr('src').replace(/ ^(.+)_over(.[a-z]+)$/, "$1$2"); } ); } );
  • 55. One More Thing http://www.flickr.com/photos/acaben/541334636/
  • 57. Ajax http://www.flickr.com/photos/mikelowe/9696647/
  • 58. Ajax • load(url, data, callback) $("#trigger").click(function() { $("#wrapper").load("./sample.txt"); });
  • 59. Ajax • jQuery.get(url, data, callback, type) $("#trigger").click(function() { var num = $("select").val(); $.get("./get.php", {id:num}, function(data) { $("#wrapper").text(data); } ); });
  • 60. thanks to • API reference • http://docs.jquery.com/Main_Page • http://semooh.jp/jquery/ • jQuery Lesson Series • http://woorkup.com/2009/10/05/jquery-lesson-series-introduction-to- selectors/ • http://woorkup.com/2009/10/14/jquery-lessons-how-to-interact-with- html-forms/ • http://woorkup.com/2009/10/22/jquery-lessons-series-how-to-implement- animations-of-css-properties/ • http://woorkup.com/2009/11/06/jquery-lessons-series-manipulate-css- classes/
  • 61. thanks to • Flickr • http://www.flickr.com/photos/themastershakesignal/173060038/ • http://www.flickr.com/photos/neo_ii/4054300112/ • http://www.flickr.com/photos/acaben/541334636/ • http://www.flickr.com/photos/mikelowe/9696647/ • http://www.flickr.com/photos/jenosaur/4051305996/ • Others • http://www.alink.co.jp/tech/wiki/index.php?jQuery%2F %2Fsubmit 2 • http://www.aozora.gr.jp/cards/000148/files/775_14942.html