What is jQuery?
jQuery is “write less, do more” open source Javascript library.
Specialized for changing web page documents on the fly.
jQuery makes it easy to add action and interactivity to any web page.
jQuery 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 is the core library. jQueryUI is built on top of it. If you use jQueryUI, you must also include jQuery.
Importance of jQuery?
Open Source.
jQuery is SEO friendly and CSS3 compliant.
Browser Compatibility i.e.; Works for all browsers.
jQuery is very small, clean code that won’t bog down the loading time of web pages
Highly Documented.There’s a low learning curve. Since it’s based on plain old JavaScript, developers can learn jQuery fast.
Web page elements display even if JavaScript is disabled in the browser.
Simplifies AJAX.
It is extensible – jQuery can be extended to implement customized behavior.
History of jQuery
Developed by John Resig.
Initial Release – 2006
Current Version – 3.1.1
Main site: https://jquery.com/
Basic Structure of jQery
<script type = “text/javascript”>
//jQuery detects this state of readiness for you.
$( document ).ready() method will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute.
$(document).ready(function(){
document.write(“Hello, World!”);// to print a string we will use document.write(); method
});
</script>
File Extension of jQuery
filename.js
Comment Line in jQuery
Single line comment is done using //
Multi- line comment start with /* and end with */.
Variable Declaration
In jQuery, you can declare variable in two styles.
- $.name = “value”;
2. var variable_name = “value”;
Mother Sparsh 99% Pure Water (Unscented) Baby Wipes I Natural Plant made cloth - Super thick Wet Wipes I 72 pcs/pack - Pack of 2 (Super Saver Pack)
₹399.00 (as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)KriVat Baby Nail Trimmer Electric 6-in-1 Set for Kids Safe Effective Baby Manicure for Newborn Infant Toddler or Adults Toes and Fingernails, Kids Nail Care (Multi-Color-Pink+Blue) Pack of 1 (BLUE-PINK)
₹270.00 (as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Amazon Brand - Supples Premium Diapers, Large (L), 62 Count, 9-14 Kg, 12 Hrs Absorption Baby Diaper Pants
₹525.00 (as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Promom Wearable Electric Breast Pump for Feeding Mothers, Automatic Hands-Free Pumping Machine with 3 Modes & 8 Suction Levels, Portable & Cordless with USB Charging, FDA Approved, Patented Diaphragm Case Technology, Best-In Class Suction-450MmHg/60KPA, Smart LED Display, 160ml BPA-Free Milk Cup, Quiet & Compact (1 Year Warranty) - Pack of 1
Now retrieving the price.
(as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Mee Mee Baby Liquid Detergent 1 L | Ph balanced, Free from Harsh Chemicals, Safe for mother's hands & baby's skin | Anti-Bacterial, Removes Stains & Odor with One Drop, Hypoallergenic
₹249.00 (as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)CERELAC Baby Cereal | No Refined Sugar | Wheat Apple Carrot for 6-24 months baby | Omega 3 Iron Protein Calcium for babies | Instant infant Cereal | Travel Friendly | 300g
Now retrieving the price.
(as of November 21, 2024 11:50 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)