SlideShare a Scribd company logo
Difference between JavaScript and jQuery

      S.No   JavaScript                                 jQuery

      1      Meaning:                                   Meaning:

             JavaScript is the most popular             JQuery is a fast and concise JavaScript
             scripting language on the internet,        Library that simplifies HTML document
             and works in all major browsers,           traversing, event handling, animating, and
             such as Internet Explorer, Firefox,        Ajax     interactions  for    rapid    web
             Chrome, Opera, and Safari.                 development.

      2      Composed of:                               Composed of:

             JavaScript is a combination of ECMA        jQuery has      Document      Object    Model
             Script and Document Object Model           (DOM).
             (DOM).

      3      Web-based application creation:            Web-based application creation:

             JavaScript has many processes in           Creating a web based application using
             creating web based applications.           jQuery becomes easier.

             Example-1:                                 Example-1: <a href=”test.html”
             <a href=”test.html” onclick=”alert(‘this   class=”css-class”>Test</a>
             is the on-click event’);”>Test</a>         $(“a.css-class”).click(function(){ alert(‘this
                                                        is the on-click event’); });
             Example-2:
             Two JavaScript function to change          Example-2:
             the background color with the onload       One JQuery changing the background
             function that would need to placed         color of a body tag
             into the body tag
                                                        $('body').css('background', '#ccc');
             function changeBackground(color) {
               document.body.style.background =         This is the clean code JQuery provides.
             color;
             }
             onload="changeBackground('red');"

             Note:
             If we use this unstructured code then
             there is many problems to validate
             the html source of web page. So
             JQuery is best to use and easy to
             understand.

      4      Animation Creation:                        Animation Creation:

             Animations are not possible using          Animations can be easily created using
             JavaScript.                                jQuery.




And, further updates on difference between questions and answers, please visit my blog @
http://onlydifferencefaqs.blogspot.in/

More Related Content

PPT
Tablas hash en java
María González García
 
PPTX
Bab 7 radiasi benda hitam
Ariq Zmc
 
DOCX
Unidad2 programas while , do while y for
Miguel Angel Peña
 
DOCX
Gelombang elektromagnetik fisika sma
Ajeng Rizki Rahmawati
 
PPTX
Tema - El Calor y la Temperatura
Juan Sanmartin
 
PDF
63997661 tecnologia-cliente-servidor-con-java
Gilberto Garcia Zavaleta
 
PPTX
Presentasi fisika hukum kekekalan energi mekanik dalam medan listrik
Nurul Ma'rifah
 
PPT
WebServices SOAP WSDL and UDDI
Rajkattamuri
 
Tablas hash en java
María González García
 
Bab 7 radiasi benda hitam
Ariq Zmc
 
Unidad2 programas while , do while y for
Miguel Angel Peña
 
Gelombang elektromagnetik fisika sma
Ajeng Rizki Rahmawati
 
Tema - El Calor y la Temperatura
Juan Sanmartin
 
63997661 tecnologia-cliente-servidor-con-java
Gilberto Garcia Zavaleta
 
Presentasi fisika hukum kekekalan energi mekanik dalam medan listrik
Nurul Ma'rifah
 
WebServices SOAP WSDL and UDDI
Rajkattamuri
 

Similar to Difference between java script and jquery (20)

PDF
What's this jQuery? Where it came from, and how it will drive innovation
Marakana Inc.
 
PDF
Pro jQuery 2 0 Second Edition Adam Freeman
waibapandim
 
PDF
Introduction to jQuery
Nagaraju Sangam
 
PPT
jQuery and_drupal
BlackCatWeb
 
PPTX
J query
Alliza Reyes
 
PPT
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
PPTX
Jquery
reddivarihareesh
 
PDF
Web2.0 with jQuery in English
Lau Bech Lauritzen
 
PDF
Week 05 Web, App and Javascript_Brandon, S.H. Wu
AppUniverz Org
 
PPTX
J query mobile tech talk
woliverj
 
PDF
Build a Web App with JavaScript and jQuery (5:18:17, Los Angeles)
Thinkful
 
PDF
Write Less Do More
Remy Sharp
 
PPT
J query presentation
sawarkar17
 
PPT
J query presentation
akanksha17
 
KEY
User Interface Development with jQuery
colinbdclark
 
PPTX
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
PDF
Master Web Design with HTML CSS JavaScript and jQuery Create Stunning Interac...
mouhlirusake
 
PPT
JS Libraries and jQuery Overview
Aleksandr Motsjonov
 
PDF
Devdays Seattle jQuery Intro for Developers
cody lindley
 
KEY
Week 4 - jQuery + Ajax
baygross
 
What's this jQuery? Where it came from, and how it will drive innovation
Marakana Inc.
 
Pro jQuery 2 0 Second Edition Adam Freeman
waibapandim
 
Introduction to jQuery
Nagaraju Sangam
 
jQuery and_drupal
BlackCatWeb
 
J query
Alliza Reyes
 
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
Web2.0 with jQuery in English
Lau Bech Lauritzen
 
Week 05 Web, App and Javascript_Brandon, S.H. Wu
AppUniverz Org
 
J query mobile tech talk
woliverj
 
Build a Web App with JavaScript and jQuery (5:18:17, Los Angeles)
Thinkful
 
Write Less Do More
Remy Sharp
 
J query presentation
sawarkar17
 
J query presentation
akanksha17
 
User Interface Development with jQuery
colinbdclark
 
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
Master Web Design with HTML CSS JavaScript and jQuery Create Stunning Interac...
mouhlirusake
 
JS Libraries and jQuery Overview
Aleksandr Motsjonov
 
Devdays Seattle jQuery Intro for Developers
cody lindley
 
Week 4 - jQuery + Ajax
baygross
 
Ad

More from Umar Ali (20)

PDF
Difference between wcf and asp.net web api
Umar Ali
 
PDF
Difference between ActionResult() and ViewResult()
Umar Ali
 
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
PDF
Difference between asp.net web api and asp.net mvc
Umar Ali
 
PDF
Difference between asp.net web forms and asp.net mvc
Umar Ali
 
PDF
ASP.NET MVC difference between questions list 1
Umar Ali
 
ODT
Link checkers 1
Umar Ali
 
PDF
Affiliate Networks Sites-1
Umar Ali
 
PDF
Technical Video Training Sites- 1
Umar Ali
 
PDF
US News Sites- 1
Umar Ali
 
PDF
How to create user friendly file hosting link sites
Umar Ali
 
PDF
Weak hadiths in tamil
Umar Ali
 
PDF
Bulughul Maram in tamil
Umar Ali
 
PDF
Asp.net website usage and job trends
Umar Ali
 
PDF
Indian news sites- 1
Umar Ali
 
PDF
Photo sharing sites- 1
Umar Ali
 
PDF
File hosting search engines
Umar Ali
 
PDF
Ajax difference faqs compiled- 1
Umar Ali
 
PDF
ADO.NET difference faqs compiled- 1
Umar Ali
 
PDF
Dotnet differences compiled -1
Umar Ali
 
Difference between wcf and asp.net web api
Umar Ali
 
Difference between ActionResult() and ViewResult()
Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
Difference between asp.net web api and asp.net mvc
Umar Ali
 
Difference between asp.net web forms and asp.net mvc
Umar Ali
 
ASP.NET MVC difference between questions list 1
Umar Ali
 
Link checkers 1
Umar Ali
 
Affiliate Networks Sites-1
Umar Ali
 
Technical Video Training Sites- 1
Umar Ali
 
US News Sites- 1
Umar Ali
 
How to create user friendly file hosting link sites
Umar Ali
 
Weak hadiths in tamil
Umar Ali
 
Bulughul Maram in tamil
Umar Ali
 
Asp.net website usage and job trends
Umar Ali
 
Indian news sites- 1
Umar Ali
 
Photo sharing sites- 1
Umar Ali
 
File hosting search engines
Umar Ali
 
Ajax difference faqs compiled- 1
Umar Ali
 
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet differences compiled -1
Umar Ali
 
Ad

Difference between java script and jquery

  • 1. Difference between JavaScript and jQuery S.No JavaScript jQuery 1 Meaning: Meaning: JavaScript is the most popular JQuery is a fast and concise JavaScript scripting language on the internet, Library that simplifies HTML document and works in all major browsers, traversing, event handling, animating, and such as Internet Explorer, Firefox, Ajax interactions for rapid web Chrome, Opera, and Safari. development. 2 Composed of: Composed of: JavaScript is a combination of ECMA jQuery has Document Object Model Script and Document Object Model (DOM). (DOM). 3 Web-based application creation: Web-based application creation: JavaScript has many processes in Creating a web based application using creating web based applications. jQuery becomes easier. Example-1: Example-1: <a href=”test.html” <a href=”test.html” onclick=”alert(‘this class=”css-class”>Test</a> is the on-click event’);”>Test</a> $(“a.css-class”).click(function(){ alert(‘this is the on-click event’); }); Example-2: Two JavaScript function to change Example-2: the background color with the onload One JQuery changing the background function that would need to placed color of a body tag into the body tag $('body').css('background', '#ccc'); function changeBackground(color) { document.body.style.background = This is the clean code JQuery provides. color; } onload="changeBackground('red');" Note: If we use this unstructured code then there is many problems to validate the html source of web page. So JQuery is best to use and easy to understand. 4 Animation Creation: Animation Creation: Animations are not possible using Animations can be easily created using JavaScript. jQuery. And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/