You are on page 1of 10

Help

Assignmentscholar.co
m

WWW.ASSIGNMENTSCHOLAR.COM
Introduction to jQuery:

 jQuery is defined as a JavaScript library that defines the common tasks.


 Today, the latest library of JavaScript used.
 It provides simple ways of selecting sets of DOM elements.
 It also defines many functions which can be applied to such results.
 jQuery is a quick and brief JavaScript Library which specifies HTML
document event handling, traversing, Ajax interactions and animation for fast
web development.

WWW.ASSIGNMENTSCHOLAR.COM
Reason For learning jQuery:
There are some of other JavaScript libraries there, but jQuery is likely the most
popular and furthermore the most extendable.
A large number of greatest companies on the Web uses the jQuery, for example:
 Microsoft
 Google
 IBM
 Netflix
Other important points of using jQuery are as:
 Write less, accomplish more: $("a.neat").addClass("ohmy God"). 
 Plugins
 Performance
 
WWW.ASSIGNMENTSCHOLAR.COM
jQuery features

The jQuery library contains the following features:


 DOM/HTML manipulation
 HTML event methods
 CSS manipulation
 AJAX
 Effects and animations
 Utilities
 

WWW.ASSIGNMENTSCHOLAR.COM
jQuery Selectors

 jQuery selectors permit to choose and manipulate HTML elements.


jQuery selectors are normally used to "find" or select HTML components depend on
their id, name, classes, attributes, types, values of attributes and more. It's depends
upon the existing CSS Selectors, and likewise it has some other own custom
selectors.
In jQuery, all selectors start with the dollar sign ($) and parentheses().
For Example: $().
The element Selector
The element selector in jQuery chooses the elements depends on the element name.
All <p> elements can be chosen on a page this way: $("p")

WWW.ASSIGNMENTSCHOLAR.COM
jQuery Functions:

Most commonly used jQuery functions are as follows:


 css() function
 removeClass() function
 addClass() function
 html() function
 text() function
 html() function
 attr() function
 ready()function

WWW.ASSIGNMENTSCHOLAR.COM
jQuery Effects:
Various effects of jQuery are as follows:
 jQuery Hide/Show: By using jQuery, HTML elements can be show and hide by using the show() and hide()
methods.
 jQuery Fade: By using jQuery, HTML elements can be fade in and out of visibility by using in() and out() function. 
 jQuery Slide: Elements can be slide up and down by using up() and down() method.

 jQuery Animate: By using jQuery, custom animations can be created. The animate() method is used to create
custom animations.
 jQuery callback(): jQuery callback() method is used after the current impact is 100% finished.
 jQuery stop():The stop() method is applied to stop effects of animation, before it is finished.
 jQuery Chaining: By using jQuery, actions/methods can be chain together.
Chaining permits to run many jQuery functions within a single statement on the same element.

WWW.ASSIGNMENTSCHOLAR.COM
Advantages of jQuery

 Fast to the end user: jQuery need not the support of the web server for
execution, because Java scripting is written for client side. Depending on task,
as the script is executed on the client’s computer, the outcomes are almost
finished instantly.
 Simplicity: JavaScript is moderately easy to implement and learn. It mostly
uses the DOM model which gives plenty of prewritten functionality.
 Versatility: JavaScript can also be used with different languages and can also
be used in a various number of applications.
 

WWW.ASSIGNMENTSCHOLAR.COM
Disadvantages of jQuery:

Security: JavaScript is expressly added to client browsers and web pages, it can


also exploit client's system, so malicious code can be executed on client machine.
More and better Competitor: JavaScript is extremely old scripting language
that is running on the machines and there are different technologies that are
performing the same thing instead of it (for example- jQuery in a superior and
simple way.
Browser Support: JavaScript is mostly interpreted differently by various
browsers.
Disable JavaScript: The complete JavaScript code is not run, if disabling the
JavaScript in the browser.
File Download: Because the file of JavaScript code is download on client
machine, so anybody can read the code and reuse it. 
WWW.ASSIGNMENTSCHOLAR.COM
THANKS

WWW.ASSIGNMENTSCHOLAR.COM

You might also like