SlideShare a Scribd company logo
jQuery Introduction - by Alok Swain http://www.Spritle.com Copyright: Spritle Software Private Limited   Please note that some of the images or content might have been taken from Internet and we don’t own copyright on them. If you have any objection in the content, please let us know at info@spritle.com
About Me http://www.Spritle.com Copyright: Spritle Software Private Limited
Why jQuery ? Makes Javascript coding easier. Increases the speed of development. Extensive support through community forums and large plugin base for numerous features. Example: document.getElementbyId(‘myElement’); $(‘#myElement’)
Main objectives of jQuery Improving interactions between JavaScript and HTML. Highly effective, readable and short code. Almost everything converts to find a certain element and do something on it. http://www.Spritle.com Copyright: Spritle Software Private Limited
jQuery Selectors Basic CSS selectors. Example- .myClass, #tableID, a.myLink... Position based selectors: a:first, p:last... a:hidden  Showcase example
Selectors continued... Multiple elements can also be selected to perform a common function on them. e.g. - $(“div#myDiv, #someID”)
DOM Traversal $(“div.myDiv”).parent();- returns the immediate parent. $(“div.myDiv”).next(); - returns the next sibling. $(“h1:first”).parents();  - returns all parents upto the html tag.
DOM Modification. $(“div#myDiv”).html(“Some Text.”); $(“table#myTable).append(“<tr> </tr>”); Showcase example
Chaining method calls. Most jQuery methods return another jQuery object representing the same collection. Thus on the output of one method other methods calls can be chained. This is one of the powerful features of jQuery. Some methods return a different collection. In such cases .end() method can be used to revert to the previous collection. Showcase example:  $('div.section').hide().addClass('gone');
Events Events can be fired when an element is clicked, hovered upon, dragged. Default events associated with certain elements can also be changed. Showcase example
Animations $(“#myDiv”).show(‘slow/fast’); Showcase Example
Ajax $.get(); $.post(); $.ajax({   type: ‘get’, url: '/ajax/method/?parameter=' + param, dataType: 'script' }); Showcase Example
Plugins Extensive Plugin support for many commonly desired functionalities. Defining custom plugins is also possible with very little effort. Plugin examples: 1.  Tablesorter 2.  Facebox
Extending jQuery jQuery is extensible through plugins, which can add new methods to the jQuery object. UI – Widgets. Showcase example .
Disadvantages. Compared to other JavaScript libraries jQuery has fewer utility functions. This issue is countered by using other libraries like Underscore.js which includes many utility functions that Prototype has.
Thank you  &  Questions http://www.Spritle.com Copyright: Spritle Software Private Limited

More Related Content

PPT
HTML5 Introduction by Dhepthi L
PPSX
JQuery Comprehensive Overview
PPT
Introduction to j query
PPTX
JsViews - Next Generation jQuery Templates
PPTX
JavaScript and jQuery Basics
PPT
J Query
PPTX
jQuery Presentation
PPTX
Harness jQuery Templates and Data Link
HTML5 Introduction by Dhepthi L
JQuery Comprehensive Overview
Introduction to j query
JsViews - Next Generation jQuery Templates
JavaScript and jQuery Basics
J Query
jQuery Presentation
Harness jQuery Templates and Data Link

What's hot (20)

PPTX
Getting the Most Out of jQuery Widgets
PDF
jQuery in the [Aol.] Enterprise
PPTX
PDF
jQuery Introduction
PPT
PDF
A brave new web - A talk about Web Components
PDF
Web Components + Backbone: a Game-Changing Combination
PDF
jQuery Loves Developers - Oredev 2009
PDF
jQuery for beginners
PPT
KnockoutJS and MVVM
PPTX
Jquery Complete Presentation along with Javascript Basics
PDF
Real World Web components
PPT
J Query(04 12 2008) Foiaz
PPTX
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
PPTX
jQuery Best Practice
PDF
D3.js and SVG
PDF
Introduction to jQuery
PPTX
Introduction to j_query
Getting the Most Out of jQuery Widgets
jQuery in the [Aol.] Enterprise
jQuery Introduction
A brave new web - A talk about Web Components
Web Components + Backbone: a Game-Changing Combination
jQuery Loves Developers - Oredev 2009
jQuery for beginners
KnockoutJS and MVVM
Jquery Complete Presentation along with Javascript Basics
Real World Web components
J Query(04 12 2008) Foiaz
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
jQuery Best Practice
D3.js and SVG
Introduction to jQuery
Introduction to j_query
Ad

Similar to J query intro_29thsep_alok (20)

PPT
jQuery Fundamentals
PPTX
PPTX
J Query The Write Less Do More Javascript Library
PPTX
JQuery_and_Ajax.pptx
PPTX
Jquery beltranhomewrok
PPTX
Jquery beltranhomewrok
PPT
jQuery Tips Tricks Trivia
PPTX
jQuery for web development
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
PDF
Jquery tutorial-beginners
PPTX
JQUERY TUTORIALS
PPTX
Starting with jQuery
PDF
Introduction to jQuery
PDF
PPT
Intro to jQuery
PPTX
jQuery
PPTX
A to Z about JQuery - Become Newbie to Expert Java Developer
PPT
J query presentation
jQuery Fundamentals
J Query The Write Less Do More Javascript Library
JQuery_and_Ajax.pptx
Jquery beltranhomewrok
Jquery beltranhomewrok
jQuery Tips Tricks Trivia
jQuery for web development
Learning jQuery made exciting in an interactive session by one of our team me...
Jquery tutorial-beginners
JQUERY TUTORIALS
Starting with jQuery
Introduction to jQuery
Intro to jQuery
jQuery
A to Z about JQuery - Become Newbie to Expert Java Developer
J query presentation
Ad

More from SPRITLE SOFTWARE PRIVATE LIMIT ED (8)

PPTX
Draper - Visnupriya - spriteXchange
PPTX
Introduction to Node.js by Vinothini B
PPTX
Intro to Amplifyjs by Visnupriya
PPTX
Intro to Raspberry Pi - by Sivakumar V
PPTX
Arduino for developers by Steve Robinson
PPTX
Cross platform mobile apps using rhomobile and jquery mobile
PDF
Introduction to Rhodes - By Surendran - Spritle software
PPT
Rail3 intro 29th_sep_surendran
Draper - Visnupriya - spriteXchange
Introduction to Node.js by Vinothini B
Intro to Amplifyjs by Visnupriya
Intro to Raspberry Pi - by Sivakumar V
Arduino for developers by Steve Robinson
Cross platform mobile apps using rhomobile and jquery mobile
Introduction to Rhodes - By Surendran - Spritle software
Rail3 intro 29th_sep_surendran

J query intro_29thsep_alok

  • 1. jQuery Introduction - by Alok Swain http://www.Spritle.com Copyright: Spritle Software Private Limited Please note that some of the images or content might have been taken from Internet and we don’t own copyright on them. If you have any objection in the content, please let us know at info@spritle.com
  • 2. About Me http://www.Spritle.com Copyright: Spritle Software Private Limited
  • 3. Why jQuery ? Makes Javascript coding easier. Increases the speed of development. Extensive support through community forums and large plugin base for numerous features. Example: document.getElementbyId(‘myElement’); $(‘#myElement’)
  • 4. Main objectives of jQuery Improving interactions between JavaScript and HTML. Highly effective, readable and short code. Almost everything converts to find a certain element and do something on it. http://www.Spritle.com Copyright: Spritle Software Private Limited
  • 5. jQuery Selectors Basic CSS selectors. Example- .myClass, #tableID, a.myLink... Position based selectors: a:first, p:last... a:hidden Showcase example
  • 6. Selectors continued... Multiple elements can also be selected to perform a common function on them. e.g. - $(“div#myDiv, #someID”)
  • 7. DOM Traversal $(“div.myDiv”).parent();- returns the immediate parent. $(“div.myDiv”).next(); - returns the next sibling. $(“h1:first”).parents(); - returns all parents upto the html tag.
  • 8. DOM Modification. $(“div#myDiv”).html(“Some Text.”); $(“table#myTable).append(“<tr> </tr>”); Showcase example
  • 9. Chaining method calls. Most jQuery methods return another jQuery object representing the same collection. Thus on the output of one method other methods calls can be chained. This is one of the powerful features of jQuery. Some methods return a different collection. In such cases .end() method can be used to revert to the previous collection. Showcase example: $('div.section').hide().addClass('gone');
  • 10. Events Events can be fired when an element is clicked, hovered upon, dragged. Default events associated with certain elements can also be changed. Showcase example
  • 12. Ajax $.get(); $.post(); $.ajax({ type: ‘get’, url: '/ajax/method/?parameter=' + param, dataType: 'script' }); Showcase Example
  • 13. Plugins Extensive Plugin support for many commonly desired functionalities. Defining custom plugins is also possible with very little effort. Plugin examples: 1. Tablesorter 2. Facebox
  • 14. Extending jQuery jQuery is extensible through plugins, which can add new methods to the jQuery object. UI – Widgets. Showcase example .
  • 15. Disadvantages. Compared to other JavaScript libraries jQuery has fewer utility functions. This issue is countered by using other libraries like Underscore.js which includes many utility functions that Prototype has.
  • 16. Thank you & Questions http://www.Spritle.com Copyright: Spritle Software Private Limited