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”;
Pampers Premium Care Pant Style Baby Diapers | Extra-Large (XL size) | 72 Count | Voted India's Softest | All-in-1 with 360 Cottony Softness Diapers | 12-17kg
₹1,634.00 (as of August 19, 2025 03:58 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.)LuvLap Moisturising Wipes with Aloe Vera Lid (72 Wipes/Pack, Pack of 3)
₹212.00 (as of August 19, 2025 03:58 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.)LuvLap Baby Lotion with Milk Protein - 700ml, Suitable for Baby’s Delicate Skin, 24 Hour Protection for Sensitive Skin, Shea Butter and VIT E, Paraben Free, Sweet Almond Oil, Dermatologically Tested
₹269.00 (as of August 19, 2025 03:58 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.)OOZU Baby Infant Toddler Helmet No Bump Safety Head Cushion Bumper Bonnet Adjustable Protective Star Printed Cap Child Safety Headguard for Running Walking Crawling Safety Helmet for Kids (Navy Blue)
₹169.00 (as of August 19, 2025 03:58 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.)Little's Soft Cleansing Baby Wipes with Lid | 80 Wipes x Pack of 3 - 240 Wipes | Extra Thick & Moist Wet Wipes for Baby's | Prevents Rashes & Redness with Goodness of Aloe Vera, Vitamin E & Jojoba Oil
₹199.00 (as of August 19, 2025 03:58 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.5 L | Ph balanced, Free from Harsh Chemicals, Safe for mother's hands & baby's skin | Anti-Bacterial, Removes Stains & Odor with One Drop, Hypoallergenic
₹349.00 (as of August 19, 2025 03:58 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.)GLUN® Cute Print Baby bibs, Pack of 6 Different Colour, Waterproof, Adjustable & Washable Feeding Bibs for Infant Kids to Toddler 8-36 Months
₹159.00 (as of August 19, 2025 03:58 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.)Huggies Comfy Pants Baby Diaper, Medium (M) Size (7-12 Kgs), Pack of 102
₹853.00 (as of August 19, 2025 03:58 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.)BELOXY Silicon Corner Protector for Sharp Edges, Table Corners Edge Protector, Baby Proofing Edge & Corner Guards (10)
Now retrieving the price.
(as of August 19, 2025 03:58 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.)