SlideShare a Scribd company logo
jQuery
JavaScript Library of the Future




Matt Taylor
YOUR
WEBAPP
SUCKS
YOUR
WEBAPP
SUCKS
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
“Most of the people
writing in JavaScript
       are not
  programmers”
       - Douglas Crockford
“Programmers who
attempt to use JavaScript
for non-trivial tasks often
find the process
frustrating if they do not
have a solid understanding
of the language.”
          - David Flanagan
1998
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
The
 “Accidental”
RIA Developer
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
THEY
USE
jQUERY
JQuery: JavaScript Library of the Future
UNOBTRUSIVE
UNOBTRUSIVE

FUNCTIONAL
UNOBTRUSIVE

 PRAGMATIC

FUNCTIONAL
IT IS OKAY
NOT TO BE
OBJECT
ORIENTED
IT IS OKAY
NOT TO BE
OBJECT
ORIENTED
jQuery Object


    jQuery
jQuery Object


jQuery(...)
jQuery Object


   $(...)
$() returns $
Accessing the DOM
  with Selectors
Accessing the DOM
  with Selectors
     $(‘#myId’)
Accessing the DOM
  with Selectors
      $(‘#myId’)
    $(‘.myClass’)
Accessing the DOM
  with Selectors
        $(‘#myId’)
      $(‘.myClass’)
    $(‘div.myClass’)
Accessing the DOM
  with Selectors
        $(‘#myId’)
      $(‘.myClass’)
    $(‘div.myClass’)
       $(‘li > p’)
Accessing the DOM
  with Selectors
        $(‘#myId’)
      $(‘.myClass’)
    $(‘div.myClass’)
       $(‘li > p’)
  $(‘a[href^=mailto:’)
Accessing the DOM
  with Selectors
         $(‘#myId’)
      $(‘.myClass’)
    $(‘div.myClass’)
        $(‘li > p’)
  $(‘a[href^=mailto:’)
       $(‘li:even’)
Accessing the DOM
  with Selectors
         $(‘#myId’)
      $(‘.myClass’)
    $(‘div.myClass’)
        $(‘li > p’)
  $(‘a[href^=mailto:’)
       $(‘li:even’)
   $(‘li:not(:last)’)
Accessing the DOM
  with Selectors
          $(‘#myId’)
       $(‘.myClass’)
     $(‘div.myClass’)
         $(‘li > p’)
  $(‘a[href^=mailto:’)
        $(‘li:even’)
    $(‘li:not(:last)’)
   $(‘#myId .myClass’)
Accessing the DOM
  with Selectors
           $(‘#myId’)
        $(‘.myClass’)
      $(‘div.myClass’)
          $(‘li > p’)
   $(‘a[href^=mailto:’)
         $(‘li:even’)
     $(‘li:not(:last)’)
    $(‘#myId .myClass’)
  $(‘#myTable tr.eq(3)’)
Accessing the DOM
  with Selectors
            $(‘#myId’)
         $(‘.myClass’)
       $(‘div.myClass’)
http://tinyurl.com/jlotf
           $(‘li > p’)
    $(‘a[href^=mailto:’)
          $(‘li:even’)
      $(‘li:not(:last)’)
     $(‘#myId .myClass’)
   $(‘#myTable tr.eq(3)’)
WHAT
YOU
 GET
BACK
Implicit Iteration

 $(‘li’).addClass(‘highlight’)
Explicit Iteration

$(‘li’).each(function() {
    $(this).addClass(‘highlight’);
});
Modifying
Appearance of a
   Webpage
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
.css({‘height’:‘100px’,
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
.css({‘height’:‘100px’,
      ‘width’:‘200px’})
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
.css({‘height’:‘100px’,
      ‘width’:‘200px’})
.height(‘100px’)
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
.css({‘height’:‘100px’,
      ‘width’:‘200px’})
.height(‘100px’)
.addClass() .removeClass()
Modifying
 Appearance of a
    Webpage
.css(‘border’, ‘solid red’)
.css({‘height’:‘100px’,
      ‘width’:‘200px’})
.height(‘100px’)
.addClass() .removeClass()
.toggleClass()
EVENTS
$(‘p’).click(function() {
  // do stuff
});

$(‘p’).click() // triggers

$(‘p’).live(‘click’, function() {
  // do stuff
}
AJAX
$.ajax({
  type: "POST",
  url: "saveUrl",
  data: "name=John&location=Boston",
  success: function(msg){
    alert( "Data Saved: " + msg );
  }
});

     Ajax Event Callbacks
ajaxStart, ajaxStop, ajaxComplete,
beforeSend, ajaxError, ajaxSend, etc.
EFFECTS
.hide()
.show()        speeds
.fadeIn()      callbacks
.fadeOut()     compound effects
.toggle()
.slideToggle()

         animate()
jQuery UI
Open source UI components
built on jQuery
Plugins
Nearly 500 plugins

Simply include the .js and
call a function
Matthew Taylor
rhyolight@gmail.com
http://dangertree.net
@rhyolight
Matthew Taylor
rhyolight@gmail.com
http://dangertree.net
@rhyolight

More Related Content

What's hot (20)

PPT
JQuery introduction
NexThoughts Technologies
 
KEY
An introduction to jQuery
James Wragg
 
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
Thinqloud
 
PDF
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
PDF
jQuery for beginners
Siva Arunachalam
 
KEY
jQuery Selectors
jQuerySlideCasts
 
PDF
AmdJavaMeetupBDDUsingCucumber
gopalsaob
 
PDF
Write Less Do More
Remy Sharp
 
PPT
Kick start with j query
Md. Ziaul Haq
 
PPTX
Jquery
PaRa Vaishnav
 
PPTX
Basics of j query
Rupesh Kumar Tiwari
 
PPTX
jQuery
Dileep Mishra
 
PPT
A Short Introduction To jQuery
Sudar Muthu
 
PDF
jQuery Essentials
Bedis ElAchèche
 
PPTX
JQuery
DevTalk
 
PPT
jQuery
Mostafa Bayomi
 
PDF
Jqeury ajax plugins
Inbal Geffen
 
PDF
jQuery in 15 minutes
Simon Willison
 
PDF
The jQuery Divide
Rebecca Murphey
 
JQuery introduction
NexThoughts Technologies
 
An introduction to jQuery
James Wragg
 
Learning jQuery made exciting in an interactive session by one of our team me...
Thinqloud
 
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
jQuery for beginners
Siva Arunachalam
 
jQuery Selectors
jQuerySlideCasts
 
AmdJavaMeetupBDDUsingCucumber
gopalsaob
 
Write Less Do More
Remy Sharp
 
Kick start with j query
Md. Ziaul Haq
 
Basics of j query
Rupesh Kumar Tiwari
 
A Short Introduction To jQuery
Sudar Muthu
 
jQuery Essentials
Bedis ElAchèche
 
JQuery
DevTalk
 
Jqeury ajax plugins
Inbal Geffen
 
jQuery in 15 minutes
Simon Willison
 
The jQuery Divide
Rebecca Murphey
 

Viewers also liked (7)

PPTX
webstudy jquery
Seungho Han
 
PPTX
jQuery na Prática - Cauê Fajoli
Caue Fajoli
 
PPTX
animation
UPSIcoursework
 
PPTX
jQuery Presentation
Rod Johnson
 
PPTX
jQuery from the very beginning
Anis Ahmad
 
PPTX
jQuery PPT
Dominic Arrojado
 
PDF
jQuery for beginners
Arulmurugan Rajaraman
 
webstudy jquery
Seungho Han
 
jQuery na Prática - Cauê Fajoli
Caue Fajoli
 
animation
UPSIcoursework
 
jQuery Presentation
Rod Johnson
 
jQuery from the very beginning
Anis Ahmad
 
jQuery PPT
Dominic Arrojado
 
jQuery for beginners
Arulmurugan Rajaraman
 
Ad

Similar to JQuery: JavaScript Library of the Future (20)

PPTX
Iniciando com jquery
Danilo Sousa
 
PPT
jQuery
Niladri Karmakar
 
PDF
Introduction to jQuery
Zeeshan Khan
 
PPTX
How to increase Performance of Web Application using JQuery
kolkatageeks
 
PPT
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
PDF
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
RAVALCHIRAG1
 
PDF
fuser interface-development-using-jquery
Kostas Mavridis
 
PPTX
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
PPTX
jQuery Presentasion
Mohammad Usman
 
PDF
DOSUG Intro to JQuery JavaScript Framework
Matthew McCullough
 
PPT
Intro to jQuery
Alan Hecht
 
PPTX
Unobtrusive javascript with jQuery
Angel Ruiz
 
PDF
jQuery
Ivano Malavolta
 
PDF
Remy Sharp The DOM scripting toolkit jQuery
deimos
 
PPTX
jQuery
Vishwa Mohan
 
PPT
Introduction to JQuery
MobME Technical
 
PPTX
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
KEY
Week 4 - jQuery + Ajax
baygross
 
PPTX
Web technologies-course 11.pptx
Stefan Oprea
 
PPTX
Introduction to JQuery
Muhammad Afzal Qureshi
 
Iniciando com jquery
Danilo Sousa
 
Introduction to jQuery
Zeeshan Khan
 
How to increase Performance of Web Application using JQuery
kolkatageeks
 
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
RAVALCHIRAG1
 
fuser interface-development-using-jquery
Kostas Mavridis
 
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
jQuery Presentasion
Mohammad Usman
 
DOSUG Intro to JQuery JavaScript Framework
Matthew McCullough
 
Intro to jQuery
Alan Hecht
 
Unobtrusive javascript with jQuery
Angel Ruiz
 
Remy Sharp The DOM scripting toolkit jQuery
deimos
 
jQuery
Vishwa Mohan
 
Introduction to JQuery
MobME Technical
 
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
Week 4 - jQuery + Ajax
baygross
 
Web technologies-course 11.pptx
Stefan Oprea
 
Introduction to JQuery
Muhammad Afzal Qureshi
 
Ad

More from Matthew Taylor (8)

PDF
Open Source Development Tooling with GitHub
Matthew Taylor
 
KEY
Mojito sl 2011
Matthew Taylor
 
PDF
YUI3 & NodeJS View Rendering in JavaScript on Client or Server
Matthew Taylor
 
PDF
Humanity 2.0
Matthew Taylor
 
KEY
Grails In The Wild
Matthew Taylor
 
KEY
Grails UI Primer
Matthew Taylor
 
KEY
Tdd With Groovy
Matthew Taylor
 
PDF
Griffon at Gateway GUG
Matthew Taylor
 
Open Source Development Tooling with GitHub
Matthew Taylor
 
Mojito sl 2011
Matthew Taylor
 
YUI3 & NodeJS View Rendering in JavaScript on Client or Server
Matthew Taylor
 
Humanity 2.0
Matthew Taylor
 
Grails In The Wild
Matthew Taylor
 
Grails UI Primer
Matthew Taylor
 
Tdd With Groovy
Matthew Taylor
 
Griffon at Gateway GUG
Matthew Taylor
 

Recently uploaded (20)

PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 

JQuery: JavaScript Library of the Future

Editor's Notes

  • #40: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #41: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #42: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #43: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #44: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #45: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #46: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #47: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #48: What you get back from selectors is the jQuery object, which contains the selected elements.
  • #49: What you get back from selectors is the jQuery object, which contains the selected elements.