SlideShare a Scribd company logo
By,
Para Vaishnav
BASIC IDEA


 jQuery   is one type of JavaScript
  library.
 Simplify Web development
  process.
 Used widely.
USP OF JQUERY




JQUERY is an Open
Source
USP OF JQUERY
            JQUERY follows this




For e.g. $(“#deleted”).addClass(“red”).fadeOut(“slow”);
USP OF JQUERY


   JQUERY supports,
Cross-Browser
 Functionality
WHY USE JQUERY?
   Ease of use
         JQUERY is reusable
         -plug and play
         It is Compact
         -no need of writing long long javascript

   AJAX support
       $(“#comments”).load(“/get_comments.php”);


   Creates Effects and Animations
                                                    Next
var xmlhttp;
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");    $.post(
}                                                  'ajax_test.php',
xmlhttp.open("POST","ajax_test.asp",true);         { fname : 'Henry', lname : 'Ford' },
xmlhttp.setRequestHeader("Content-                 function(resp) {
type","application/x-wwwform-                      $('#myDiv').html(resp); }
urlencoded");                                      );
xmlhttp.send("fname=Henry&lname=Ford");            Wednesday, September
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status ==
200) {
document.getElementById("myDiv").innerHTML =
xmlhttp.responseText;
}
};
Wednesday, September                                                            Back
   Supports All Versions of CSS
   Size and Speed
   Instant Plug-ins
   Great Documentation
   Large Community
HOW TO USE JQUERY?
   First Download the latest version of JQUERY

.JS file from
  http://jquery.com/

Documentation from
    http://code.google.com/apis/libraries/devguide.html#jquery


Plug-ins from
  http://plugins.jquery.com/
KNOW JQUERY'S PARTS
 Find Some Elements
  {
   $(“DIV”).ADDCLASS(“XYZ”);


   jQuery Object      }
                      Do something with them




For e.g.
$(“p”).addClass(“blue”);


<p class=“blue”>Hello Students</p>
SELECTORS
                     #header{
Imagine any CSS   file      margin : 0
                            }
                     div{
                            margin : 0px;
                            padding : 0px
                            }
                     ul.menu li{
                            …..
                     }



Selecting By Id         $(“#header”)
FILTERS
        Basic Filters :
             :first, :last, :even, :odd, …...
        Content Filters:
             :empty , :contains(text), :has(selector), …..
        Attribute Filters:
             [attribute], [attribute=value], [attribute!=value], …..


For e.g.
$(“#students tr:even”).css(“background-color”, “#dde”)

It selects even elements and change BGcolor of that <td> (index starts from zero)
           Name                   Class                Roll No.           Comment
   Raju                             XII                    2            Good
   Masud                            IX                     1            Good
   Apu                              XII                    3
JQUERY METHODS
   DOM Manipulation
       before(), after(), append(), appendTo(), …..
   Attributes
       css(), addClass(), attr(), html(), val(), …..
   Events
       click(), bind(), unbind(), live(), …..
   Effects
       hide(), fadeOut(), toggle(), animate(), …..
   Ajax
       load(), get(), ajax(),.ajaxStart()…..
DOM MANIPULATION EXAMPLE
           Move all paragraphs in div with id “contents”
                                 <body>
                                           <h1>jQuery</h1>
                                           <p>jQuery is good</p>
                                           <p>jQuery is better</p>
                                           <div id=“contents”></div>
                                           <p>jQuery is the best</p>

                                 </body>

$(“p”).appendTo(“#contents”); will append <p> in <div id=“contents”>
                                           <h1>jQuery</h1>
                                           <div id=“contents”>
                                                    <p>jQuery is good</p>
                                                    <p>jQuery is better</p>
                                                    <p>jQuery is the
                      best</p>
                                           </div>
ATTRIBUTE EXAMPLE
         Make the texts of last paragraph bold

        $(“#contents p:last”).css(“color”, “green”);
 <body>
  <h1>jQuery Dom Manipulation</h1>
   <div id=“contents”>
        <p >jQuery is good</p>
        <p>jQuery is better</p>
        <p style=“color:green”>jQuery is the best</p>
        </div>
 </body>


Also we can Get or Set the values of attributes :
Set : $(“img.logo”).attr(“align”, “left”);
Get : var allignment = $(“img.logo”).attr(“align”);
IMPLEMENTING JQUERY
     We can implement JQUERY in two ways
                  function slideSwitch()
                  {
   From Scratch              var $active = $('#slideshow IMG.active');
                             var $next = $active.next();
                             $next.addClass('active');
                             $active.removeClass('active');
                  }
                   $(function() { setInterval( "slideSwitch()", 5000 ); });




Use ready plug-ins
FROM SCRATCH
USING PLUG-INS
   Download the plug-in (any version)
   Unzip the downloaded file to a folder and put it whichever
    application you are using.
   Add the plug-in's JavaScript and CSS files inside the header
    section of your Web page:
       For e.g
            <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
            <script src="star-rating/jquery.rating.js"></script>

   Change in styles and css according to your needs
   And you are ready to use your customized plug-ins .
SOURCE
   Links :-
   jquery.com
   http://blog.themeforest.net/
   http://code.google.com/apis/libraries/devguide.html#jquery
   http://en.wikipedia.org/wiki/JQuery#Etymology

   E-Books :-
   JQUERY NOVICE TO NINJA
        -earle castledine & craig sharkie
Thank
You

More Related Content

What's hot (20)

PPT
A Short Introduction To jQuery
Sudar Muthu
 
PPT
JQuery introduction
NexThoughts Technologies
 
PPT
Jquery presentation
Narendra Dabhi
 
PPTX
Jquery-overview
Isfand yar Khan
 
PPTX
jQuery from the very beginning
Anis Ahmad
 
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
Thinqloud
 
PDF
Write Less Do More
Remy Sharp
 
PPTX
JavaScript and jQuery Basics
Kaloyan Kosev
 
PPTX
Jquery optimization-tips
anubavam-techkt
 
PPTX
jQuery
Vishwa Mohan
 
PPTX
Jquery introduction
musrath mohammad
 
PDF
jQuery Essentials
Bedis ElAchèche
 
PPT
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
PPT
Kick start with j query
Md. Ziaul Haq
 
PDF
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
PDF
D3.js and SVG
Karol Depka Pradzinski
 
PDF
Jqeury ajax plugins
Inbal Geffen
 
PDF
Introducing jQuery
Wildan Maulana
 
A Short Introduction To jQuery
Sudar Muthu
 
JQuery introduction
NexThoughts Technologies
 
Jquery presentation
Narendra Dabhi
 
Jquery-overview
Isfand yar Khan
 
jQuery from the very beginning
Anis Ahmad
 
Learning jQuery made exciting in an interactive session by one of our team me...
Thinqloud
 
Write Less Do More
Remy Sharp
 
JavaScript and jQuery Basics
Kaloyan Kosev
 
Jquery optimization-tips
anubavam-techkt
 
jQuery
Vishwa Mohan
 
Jquery introduction
musrath mohammad
 
jQuery Essentials
Bedis ElAchèche
 
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
Kick start with j query
Md. Ziaul Haq
 
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
D3.js and SVG
Karol Depka Pradzinski
 
Jqeury ajax plugins
Inbal Geffen
 
Introducing jQuery
Wildan Maulana
 

Similar to Jquery (20)

PDF
Jquery presentation
Mevin Mohan
 
PPT
Jquery 2
Manish Kumar Singh
 
PPTX
A Rich Web Experience with jQuery, Ajax and .NET
James Johnson
 
PPT
Jquery presentation
guest5d87aa6
 
PDF
jQuery Basic API
Hyeonseok Shin
 
PPTX
Jquery Basics
Umeshwaran V
 
PPTX
Jquery tutorial
Bui Kiet
 
PPTX
A Rich Web experience with jQuery, Ajax and .NET
James Johnson
 
PDF
GDI Seattle - Intro to JavaScript Class 4
Heather Rock
 
PDF
Building iPhone Web Apps using "classic" Domino
Rob Bontekoe
 
PPTX
Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...
Ayes Chinmay
 
PPT
jQuery Beginner
kumar gaurav
 
PPTX
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
KEY
Introduction to jQuery - Barcamp London 9
Jack Franklin
 
PPT
jQuery Intro
Jason Noble
 
KEY
Web accessibility
Eb Styles
 
PDF
XQuery Rocks
William Candillon
 
PDF
How to Mess Up Your Angular UI Components
cagataycivici
 
PPT
jQuery
Mostafa Bayomi
 
KEY
jQuery - Tips And Tricks
Lester Lievens
 
Jquery presentation
Mevin Mohan
 
A Rich Web Experience with jQuery, Ajax and .NET
James Johnson
 
Jquery presentation
guest5d87aa6
 
jQuery Basic API
Hyeonseok Shin
 
Jquery Basics
Umeshwaran V
 
Jquery tutorial
Bui Kiet
 
A Rich Web experience with jQuery, Ajax and .NET
James Johnson
 
GDI Seattle - Intro to JavaScript Class 4
Heather Rock
 
Building iPhone Web Apps using "classic" Domino
Rob Bontekoe
 
Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...
Ayes Chinmay
 
jQuery Beginner
kumar gaurav
 
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
Introduction to jQuery - Barcamp London 9
Jack Franklin
 
jQuery Intro
Jason Noble
 
Web accessibility
Eb Styles
 
XQuery Rocks
William Candillon
 
How to Mess Up Your Angular UI Components
cagataycivici
 
jQuery - Tips And Tricks
Lester Lievens
 
Ad

Recently uploaded (20)

PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
Using Google Data Studio (Looker Studio) to Create Effective and Easy Data Re...
Orage Technologies
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
OpenInfra ID 2025 - Are Containers Dying? Rethinking Isolation with MicroVMs.pdf
Muhammad Yuga Nugraha
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Using Google Data Studio (Looker Studio) to Create Effective and Easy Data Re...
Orage Technologies
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Ad

Jquery

  • 2. BASIC IDEA  jQuery is one type of JavaScript library.  Simplify Web development process.  Used widely.
  • 3. USP OF JQUERY JQUERY is an Open Source
  • 4. USP OF JQUERY JQUERY follows this For e.g. $(“#deleted”).addClass(“red”).fadeOut(“slow”);
  • 5. USP OF JQUERY JQUERY supports, Cross-Browser Functionality
  • 6. WHY USE JQUERY?  Ease of use JQUERY is reusable -plug and play It is Compact -no need of writing long long javascript  AJAX support  $(“#comments”).load(“/get_comments.php”);  Creates Effects and Animations Next
  • 7. var xmlhttp; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); $.post( } 'ajax_test.php', xmlhttp.open("POST","ajax_test.asp",true); { fname : 'Henry', lname : 'Ford' }, xmlhttp.setRequestHeader("Content- function(resp) { type","application/x-wwwform- $('#myDiv').html(resp); } urlencoded"); ); xmlhttp.send("fname=Henry&lname=Ford"); Wednesday, September xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("myDiv").innerHTML = xmlhttp.responseText; } }; Wednesday, September Back
  • 8. Supports All Versions of CSS  Size and Speed  Instant Plug-ins  Great Documentation  Large Community
  • 9. HOW TO USE JQUERY?  First Download the latest version of JQUERY .JS file from http://jquery.com/ Documentation from http://code.google.com/apis/libraries/devguide.html#jquery Plug-ins from http://plugins.jquery.com/
  • 10. KNOW JQUERY'S PARTS Find Some Elements { $(“DIV”).ADDCLASS(“XYZ”); jQuery Object } Do something with them For e.g. $(“p”).addClass(“blue”); <p class=“blue”>Hello Students</p>
  • 11. SELECTORS #header{ Imagine any CSS file margin : 0 } div{ margin : 0px; padding : 0px } ul.menu li{ ….. } Selecting By Id $(“#header”)
  • 12. FILTERS  Basic Filters :  :first, :last, :even, :odd, …...  Content Filters:  :empty , :contains(text), :has(selector), …..  Attribute Filters:  [attribute], [attribute=value], [attribute!=value], ….. For e.g. $(“#students tr:even”).css(“background-color”, “#dde”) It selects even elements and change BGcolor of that <td> (index starts from zero) Name Class Roll No. Comment Raju XII 2 Good Masud IX 1 Good Apu XII 3
  • 13. JQUERY METHODS  DOM Manipulation  before(), after(), append(), appendTo(), …..  Attributes  css(), addClass(), attr(), html(), val(), …..  Events  click(), bind(), unbind(), live(), …..  Effects  hide(), fadeOut(), toggle(), animate(), …..  Ajax  load(), get(), ajax(),.ajaxStart()…..
  • 14. DOM MANIPULATION EXAMPLE Move all paragraphs in div with id “contents” <body> <h1>jQuery</h1> <p>jQuery is good</p> <p>jQuery is better</p> <div id=“contents”></div> <p>jQuery is the best</p> </body> $(“p”).appendTo(“#contents”); will append <p> in <div id=“contents”> <h1>jQuery</h1> <div id=“contents”> <p>jQuery is good</p> <p>jQuery is better</p> <p>jQuery is the best</p> </div>
  • 15. ATTRIBUTE EXAMPLE Make the texts of last paragraph bold $(“#contents p:last”).css(“color”, “green”); <body> <h1>jQuery Dom Manipulation</h1> <div id=“contents”> <p >jQuery is good</p> <p>jQuery is better</p> <p style=“color:green”>jQuery is the best</p> </div> </body> Also we can Get or Set the values of attributes : Set : $(“img.logo”).attr(“align”, “left”); Get : var allignment = $(“img.logo”).attr(“align”);
  • 16. IMPLEMENTING JQUERY We can implement JQUERY in two ways function slideSwitch() { From Scratch var $active = $('#slideshow IMG.active'); var $next = $active.next(); $next.addClass('active'); $active.removeClass('active'); } $(function() { setInterval( "slideSwitch()", 5000 ); }); Use ready plug-ins
  • 18. USING PLUG-INS  Download the plug-in (any version)  Unzip the downloaded file to a folder and put it whichever application you are using.  Add the plug-in's JavaScript and CSS files inside the header section of your Web page:  For e.g <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script src="star-rating/jquery.rating.js"></script>  Change in styles and css according to your needs  And you are ready to use your customized plug-ins .
  • 19. SOURCE  Links :-  jquery.com  http://blog.themeforest.net/  http://code.google.com/apis/libraries/devguide.html#jquery  http://en.wikipedia.org/wiki/JQuery#Etymology  E-Books :-  JQUERY NOVICE TO NINJA -earle castledine & craig sharkie