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”;
Owme Unicorn Night Lights for Girls Bedroom,16 Colors Cute Night Light for Kids, Led Rechargeable Unicorn Lamp, Unicorns Gifts for Girls Night Lamp, Silicone Night Light Kids Cute - Multicolor
₹299.00 (as of July 1, 2025 20:03 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 Baby Diaper Pants | 62 Baby Diapers | Large | 9-14 Kg | 12 Hrs Absorption | Cushiony Cotton Soft Fabric | Phthalates-Free | Triple Leak Guard
₹523.00 (as of July 1, 2025 20:03 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 Hooded Baby Bath Towel for New Born | Wash Cloth, Quick Absorbent, Can be Used for Baby Swaddling, Extra Soft Cotton Towels for Kids/Toddlers/Infants/Babies, Pack of 1, (Pink Cat) 80X80 CM
₹429.00 (as of July 1, 2025 20:03 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 Caring Baby Wet Wipes with lid, 72 Pcs (Aloe Vera, Pack of 3)
₹209.00 (as of July 1, 2025 20:03 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.)TerraToss Silicon Corner Protector [8 Pcs] for Sharp Edges | L-Shaped Table Corners Edge Protector | Baby Proofing Edge & Corner Guards for Baby Safety
₹139.00 (as of July 1, 2025 20:03 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.)Baby Nail Trimmer | New Born Essentials | Baby Nail Cutter New Born 0-12 Months with 6 Filer Heads Adjustment |1 Year Warranty |
₹299.00 (as of July 1, 2025 20:03 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.)BABYKINS Remote Teether Toy for Babies | Soft Silicone | BPA-Free | 3+ Months | Shape & Color Learning | Black
Now retrieving the price.
(as of July 1, 2025 20:03 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.)