SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Introduction to jQuery
www.collaborationtech.co.in
Bengaluru INDIA
Presentation By
Ramananda M.S Rao
Content
Content
Introduction
Getting Started
Selecting and Filtering
DOM
Handling Events
Content and Attributes
Arrays and Iterations
CSS
Ajax Features
Animations and Effects
Custom Events and PlugIns
JQuery Properties
Selector & Traversing
Dimensions
About Us
DD
www.collaborationtech.co.in
Introduction
 jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML
document traversal and manipulation, event handling, animation, and Ajax much simpler
with an easy-to-use API that works across a multitude of browsers.
 jQuery takes a lot of common tasks that require many lines of JavaScript code to
accomplish, and wraps them into methods that you can call with a single line of code.
 jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and
DOM manipulation.
Jquery Core Functionality
 The Jquery Core Functionality is used to implement or it implements the functions that
are the core of Jquery. It is also implements the commonly used utilities.
Ajax the Jquery functionality
 The Jquery library provides us very useful utilities to work with the Ajax (Asynchronous
JavaScript and Xml). It includes the functionalities like dealing with the JSON (JavaScript
Object Notation) data and loading contents from pages etc.
Events in Jquery
 This is one of the most commonly used features of Jquery. It is used to simplify the
manipulation process of the DOM (Document Object Model) events. It also provides us
the common event helper functions to use for more efficiency.
www.collaborationtech.co.in
Getting Started
You can download jQuery from here: http://jquery.com/download/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Hello World</title>
<script src="https://code.jquery.com/jquery-
1.11.3.min.js"></script>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
www.collaborationtech.co.in
Selectors
 jQuery selectors are one of the most important parts of the jQuery library.
 jQuery selectors are used to "find" (or select) HTML elements based on their name, id, classes, types, attributes,
values of attributes and much more. It's based on the existing CSS Selectors, and in addition, it has some own
custom selectors.
 All selectors in jQuery start with the dollar sign and parentheses: $().
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Select Element by ID</title>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Highlight element with id mark
$("#mark").css("background", "yellow");
});
</script>
</head>
<body>
<p id="mark">This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>This is one more paragraph.</p>
<p><strong>Note:</strong> The value of the id attribute must be unique in an HTML document.</p>
</body>
</html>
www.collaborationtech.co.in
Events
 Events are often triggered by the user's interaction with the web page, such as when a link or button is clicked, text is
entered into an input box or textarea, selection is made in a select box, key is pressed on the keyboard, the mouse
pointer is moved etc.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Executing mouse Event in jQuery</title>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<style type="text/css">
p{ padding: 20px; font: 20px sans-serif; background: lightblue;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("p").click(function(){
$(this).slideUp();
});
});
</script>
</head>
<body>
<p>Click on me and I'll disappear.</p>
<p>Click on me and I'll disappear.</p>
<p>Click on me and I'll disappear.</p>
</body>
</html>
www.collaborationtech.co.in
jQuery Filtering
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Selecting the First Element in jQuery</title>
<style type="text/css">
.highlight{ background: yellow; }
</style>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ $("ul li").first().addClass("highlight");});
</script>
</head>
<body><h2>Unordered List</h2>
<ul> <li>First list item</li> <li>Second list item</li>
<li>Third list item</li> <li>Fourth list item</li></ul><hr>
<h2>Another Unordered List</h2>
<ul> <li>First list item</li> <li>Second list item</li>
<li>Third list item</li> <li>Fourth list item</li> </ul>
</body>
</html>
www.collaborationtech.co.in
jQuery Filtering
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Selecting the Last Element in jQuery</title>
<style type="text/css">
.highlight{background: yellow; }
</style>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("ul li").last().addClass("highlight");
});
</script>
</head>
<body>
<h2>Unordered List</h2>
<ul><li>First list item</li><li>Second list item</li>
<li>Third list item</li><li>Fourth list item</li></ul><hr>
<h2>Another Unordered List</h2>
<ul> <li>First list item</li><li>Second list item</li>
<li>Third list item</li> <li>Fourth list item</li></ul>
</body>
</html>
www.collaborationtech.co.in
jQuery ajax
<!DOCTYPE html>
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").load("demo_test.txt");
});
});
</script>
</head>
<body>
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Click Me</button>
</body>
</html>
www.collaborationtech.co.in
jQuery ajax
demo_test.txt
<!DOCTYPE html>
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquer
y.min.js"></script>
</head>
<body>
<h2>jQuery and AJAX is FUN</h2>
<p id="p1">Welcome to Collaboration Technologies</p>
</body>
</html>
www.collaborationtech.co.in
Follow us on Social
Facebook: https://www.facebook.com/collaborationtechnologies/
Twitter : https://twitter.com/collaboration09
Google Plus : https://plus.google.com/100704494006819853579
LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545
Instagram : https://instagram.com/collaborationtechnologies
YouTube :
https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg
Skype : facebook:ramananda.rao.7
WhatsApp : +91 9886272445
www.collaborationtech.co.in
THANK YOU
About Us

More Related Content

PPTX
Introduction to JPA Framework
PPT
Java Persistence API (JPA) Step By Step
PPS
Java Hibernate Programming with Architecture Diagram and Example
PPT
jpa-hibernate-presentation
PPTX
Introduction to JPA (JPA version 2.0)
PPTX
jsp MySQL database connectivity
PPTX
Hibernate
PPT
Introduction to Hibernate
Introduction to JPA Framework
Java Persistence API (JPA) Step By Step
Java Hibernate Programming with Architecture Diagram and Example
jpa-hibernate-presentation
Introduction to JPA (JPA version 2.0)
jsp MySQL database connectivity
Hibernate
Introduction to Hibernate

What's hot (19)

DOC
Hibernate tutorial for beginners
PPTX
JPA For Beginner's
PPTX
Hibernate Basic Concepts - Presentation
PPTX
Hibernate in Action
ODP
Hibernate Developer Reference
PDF
Hibernate Presentation
PDF
Java persistence api 2.1
PPTX
Hibernate ppt
PPTX
Jpa 2.1 Application Development
PPTX
1. java database connectivity (jdbc)
PPTX
Spring & hibernate
PDF
ODP
Hibernate complete Training
PPTX
Database Access With JDBC
PPTX
Spring framework DAO
ODP
JPA Best Practices
PPTX
Spring JDBCTemplate
PPT
Entity Persistence with JPA
PPT
Hibernate presentation
Hibernate tutorial for beginners
JPA For Beginner's
Hibernate Basic Concepts - Presentation
Hibernate in Action
Hibernate Developer Reference
Hibernate Presentation
Java persistence api 2.1
Hibernate ppt
Jpa 2.1 Application Development
1. java database connectivity (jdbc)
Spring & hibernate
Hibernate complete Training
Database Access With JDBC
Spring framework DAO
JPA Best Practices
Spring JDBCTemplate
Entity Persistence with JPA
Hibernate presentation
Ad

Viewers also liked (20)

PPTX
Introduction to PHP
PPTX
Introduction to JavaScript Programming
PPTX
High School Student Social Media Trends 2013
PPTX
Spring User Group Thymeleaf 08-21-2013
PPT
DSpace UI Prototype Challenge: Spring Boot + Thymeleaf
PDF
Broadleaf Presents Thymeleaf
PDF
Thymeleaf, will it blend?
PDF
Introducing thymeleaf
PDF
Thymeleaf Introduction
PDF
Java™ in Web 2.0
PDF
Social media for students
PDF
Modern Java web applications with Spring Boot and Thymeleaf
PPT
JQuery introduction
PPTX
Introduction to spring boot
PPTX
jQuery Presentation
PDF
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
PPTX
jQuery from the very beginning
PPTX
Positive and negative aspects of Social Media
PDF
Spring Boot
PPTX
Social Media Power : Positive or Negative
Introduction to PHP
Introduction to JavaScript Programming
High School Student Social Media Trends 2013
Spring User Group Thymeleaf 08-21-2013
DSpace UI Prototype Challenge: Spring Boot + Thymeleaf
Broadleaf Presents Thymeleaf
Thymeleaf, will it blend?
Introducing thymeleaf
Thymeleaf Introduction
Java™ in Web 2.0
Social media for students
Modern Java web applications with Spring Boot and Thymeleaf
JQuery introduction
Introduction to spring boot
jQuery Presentation
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
jQuery from the very beginning
Positive and negative aspects of Social Media
Spring Boot
Social Media Power : Positive or Negative
Ad

Similar to Introduction to jQuery (20)

PPTX
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
PPT
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
PPTX
PDF
Advanced JQuery Mobile tutorial with Phonegap
PPTX
jQuery for web development
PPTX
PPTX
lec 14-15 Jquery_All About J-query_.pptx
PDF
Short intro to JQuery and Modernizr
PPTX
Starting with jQuery
PPTX
jQuery
PPTX
Web Development Introduction to jQuery
PPTX
Jquery beltranhomewrok
PPTX
Jquery beltranhomewrok
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
PPTX
Introduction to jquery mobile with Phonegap
PPTX
JavaScript and jQuery Basics
PDF
Intro to Javascript and jQuery
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
Advanced JQuery Mobile tutorial with Phonegap
jQuery for web development
lec 14-15 Jquery_All About J-query_.pptx
Short intro to JQuery and Modernizr
Starting with jQuery
jQuery
Web Development Introduction to jQuery
Jquery beltranhomewrok
Jquery beltranhomewrok
Learning jQuery made exciting in an interactive session by one of our team me...
Introduction to jquery mobile with Phonegap
JavaScript and jQuery Basics
Intro to Javascript and jQuery

More from Collaboration Technologies (14)

PPTX
Introduction to Core Java Programming
PPTX
Introduction to Database SQL & PL/SQL
PPTX
Introduction to Advanced Javascript
PPTX
Introduction to AngularJS
PPTX
Introduction to Bootstrap
PPTX
Introduction to Hibernate Framework
PPTX
Introduction to HTML4
PPTX
Introduction to HTML5
PPTX
Introduction to Perl Programming
PPTX
Introduction to Python Basics Programming
PPTX
Introduction to Spring Framework
PPTX
Introduction to Struts 2
PPTX
Introduction to JSON & AJAX
PPTX
Introduction to Node.JS
Introduction to Core Java Programming
Introduction to Database SQL & PL/SQL
Introduction to Advanced Javascript
Introduction to AngularJS
Introduction to Bootstrap
Introduction to Hibernate Framework
Introduction to HTML4
Introduction to HTML5
Introduction to Perl Programming
Introduction to Python Basics Programming
Introduction to Spring Framework
Introduction to Struts 2
Introduction to JSON & AJAX
Introduction to Node.JS

Recently uploaded (20)

PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
PPTX
CroxyProxy Instagram Access id login.pptx
PDF
Chapter 2 Digital Image Fundamentals.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Reimagining Insurance: Connected Data for Confident Decisions.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
KodekX | Application Modernization Development
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
REPORT: Heating appliances market in Poland 2024
PDF
Newfamily of error-correcting codes based on genetic algorithms
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Omni-Path Integration Expertise Offered by Nor-Tech
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Transforming Manufacturing operations through Intelligent Integrations
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
CroxyProxy Instagram Access id login.pptx
Chapter 2 Digital Image Fundamentals.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Reimagining Insurance: Connected Data for Confident Decisions.pdf
20250228 LYD VKU AI Blended-Learning.pptx
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
KodekX | Application Modernization Development
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
NewMind AI Monthly Chronicles - July 2025
Advanced Soft Computing BINUS July 2025.pdf
REPORT: Heating appliances market in Poland 2024
Newfamily of error-correcting codes based on genetic algorithms
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Omni-Path Integration Expertise Offered by Nor-Tech
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Event Presentation Google Cloud Next Extended 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

Introduction to jQuery

  • 1. Introduction to jQuery www.collaborationtech.co.in Bengaluru INDIA Presentation By Ramananda M.S Rao
  • 2. Content Content Introduction Getting Started Selecting and Filtering DOM Handling Events Content and Attributes Arrays and Iterations CSS Ajax Features Animations and Effects Custom Events and PlugIns JQuery Properties Selector & Traversing Dimensions About Us DD www.collaborationtech.co.in
  • 3. Introduction  jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.  jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.  jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation. Jquery Core Functionality  The Jquery Core Functionality is used to implement or it implements the functions that are the core of Jquery. It is also implements the commonly used utilities. Ajax the Jquery functionality  The Jquery library provides us very useful utilities to work with the Ajax (Asynchronous JavaScript and Xml). It includes the functionalities like dealing with the JSON (JavaScript Object Notation) data and loading contents from pages etc. Events in Jquery  This is one of the most commonly used features of Jquery. It is used to simplify the manipulation process of the DOM (Document Object Model) events. It also provides us the common event helper functions to use for more efficiency. www.collaborationtech.co.in
  • 4. Getting Started You can download jQuery from here: http://jquery.com/download/ <!doctype html> <html> <head> <meta charset="utf-8"> <title>Hello World</title> <script src="https://code.jquery.com/jquery- 1.11.3.min.js"></script> </head> <body> <h1>Hello, World!</h1> </body> </html> www.collaborationtech.co.in
  • 5. Selectors  jQuery selectors are one of the most important parts of the jQuery library.  jQuery selectors are used to "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more. It's based on the existing CSS Selectors, and in addition, it has some own custom selectors.  All selectors in jQuery start with the dollar sign and parentheses: $(). <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Select Element by ID</title> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ // Highlight element with id mark $("#mark").css("background", "yellow"); }); </script> </head> <body> <p id="mark">This is a paragraph.</p> <p>This is another paragraph.</p> <p>This is one more paragraph.</p> <p><strong>Note:</strong> The value of the id attribute must be unique in an HTML document.</p> </body> </html> www.collaborationtech.co.in
  • 6. Events  Events are often triggered by the user's interaction with the web page, such as when a link or button is clicked, text is entered into an input box or textarea, selection is made in a select box, key is pressed on the keyboard, the mouse pointer is moved etc. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Executing mouse Event in jQuery</title> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <style type="text/css"> p{ padding: 20px; font: 20px sans-serif; background: lightblue; } </style> <script type="text/javascript"> $(document).ready(function(){ $("p").click(function(){ $(this).slideUp(); }); }); </script> </head> <body> <p>Click on me and I'll disappear.</p> <p>Click on me and I'll disappear.</p> <p>Click on me and I'll disappear.</p> </body> </html> www.collaborationtech.co.in
  • 7. jQuery Filtering <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Selecting the First Element in jQuery</title> <style type="text/css"> .highlight{ background: yellow; } </style> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("ul li").first().addClass("highlight");}); </script> </head> <body><h2>Unordered List</h2> <ul> <li>First list item</li> <li>Second list item</li> <li>Third list item</li> <li>Fourth list item</li></ul><hr> <h2>Another Unordered List</h2> <ul> <li>First list item</li> <li>Second list item</li> <li>Third list item</li> <li>Fourth list item</li> </ul> </body> </html> www.collaborationtech.co.in
  • 8. jQuery Filtering <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Selecting the Last Element in jQuery</title> <style type="text/css"> .highlight{background: yellow; } </style> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("ul li").last().addClass("highlight"); }); </script> </head> <body> <h2>Unordered List</h2> <ul><li>First list item</li><li>Second list item</li> <li>Third list item</li><li>Fourth list item</li></ul><hr> <h2>Another Unordered List</h2> <ul> <li>First list item</li><li>Second list item</li> <li>Third list item</li> <li>Fourth list item</li></ul> </body> </html> www.collaborationtech.co.in
  • 11. Follow us on Social Facebook: https://www.facebook.com/collaborationtechnologies/ Twitter : https://twitter.com/collaboration09 Google Plus : https://plus.google.com/100704494006819853579 LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545 Instagram : https://instagram.com/collaborationtechnologies YouTube : https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg Skype : facebook:ramananda.rao.7 WhatsApp : +91 9886272445 www.collaborationtech.co.in THANK YOU