Hi Folks, In this post, we are going to see, how to calculate AGE using Date Of Birth in jQuery. It’s very simple code.
Find the code below
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Datepicker - Display month & year menus</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(function() {
$("#nu_datebirth").datepicker({
onSelect: function(value, ui) {
var today = new Date(),
age = today.getFullYear() - ui.selectedYear;
$('#a_ge').val(age);
},
dateFormat: 'dd-mm-yy',changeMonth: true,changeYear: true,yearRange:"c-100:c+0"
});
});
</script>
</head>
<body>
<p>Dob: <input type="text" id="nu_datebirth" name="nu_datebirth"></p>
<p>Age: <input type="text" name="a_ge" id="a_ge" class="nu_field" readonly/></p>
</body>
</html>
Mee Mee Wet Wipes for Baby Skin with Aloe Vera 72Pcs, Pack of 3 | Paraben Free, Fragrance Free, pH Balanced, Dermatologically Safe, Baby Wipes Combo | Pack With Lid
₹199.00 (as of January 6, 2026 22:05 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)
₹190.00 (as of January 6, 2026 22:05 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 Sleeping Support Pillow with Side Rollers | Newborn Safety Sleeping Pillow Set | Soft Cotton Infant Neck Pillow for 0–12 Months | Anti-Flat Head Cushion for Baby Boys & Girls (LightBlue)
₹287.00 (as of January 6, 2026 22:05 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 Premium Baby Diapers L Size (Large) Pants Style | 9-14 kg | 62 Count | Super Jumbo FluffySoft Baby Diaper with Leakage Guard, Wetness Indicator & 12 Hours Absorption
₹515.00 (as of January 6, 2026 22:05 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.)Jr. Sr. Baby Diaper Pants | Medium (M) Size (7-12 kg), 72 Count | Pack of 1 | Upto 12 hr Absorption with Advanced Leak Protection | Safe For Babies Skin | Soft, Secure & Comfy
₹479.00 (as of January 6, 2026 22:05 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.)AVENT Philips Natural Response Baby Feeding Bottle - 125Ml Baby Milk Bottle for Newborns and Up, Bpa Free, 0+ Months (Model Scy900/01)
₹392.00 (as of January 6, 2026 22:05 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.)TEDDYY Baby Easy Pant Diapers Medium 74 Count (Pack of 1), 7-12 kgs, 10 hrs Leak Protection, Anti - Bacterial
₹474.00 (as of January 6, 2026 22:05 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 Pant Style Baby Diapers, X-Large (XL), 54 Count, For babies of Upto 12-17Kg with Aloe Vera Lotion for rash protection, with upto 12hr protection, Diapers
₹515.00 (as of January 6, 2026 22:05 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.)Himalaya Baby Lotion with Almond and Olive Oil, 400ml
₹217.00 (as of January 6, 2026 22:05 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.)PYXBE Panda Night Lamp Silicone Touch Color Changing LED Rechargeable Night Light for Kids, Gifts for Girls & Boys | Cute Unisex Bedroom Decor Valentine Special Soft BPA-Free Nightlight
Now retrieving the price.
(as of January 6, 2026 22:05 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.)
It’s really a cool and useful piece of info. I am glad that
you shared this useful information with us.
Please stay us up to date like this. Thanks for sharing.
That is very attention-grabbing, You are an excessively skilled blogger.
I’ve joined your feed and look ahead to in search of more of your fantastic post. Also, I’ve shared your site
on my social networks
Great post. I used to be checking continuously this weblog and I’m inspired!
Very helpful information specially the ultimate phase 🙂 I handle such info a lot.
I was looking for this particular information for a very lengthy time.
Thanks and good luck.
Hello, my loved one! I wish to say that this article is awesome, nicely written and come with approximately all important Infos. I’d like to look
more posts like this.
If someone needs expert view regarding blogging and site-building then i
suggest him/her visit this website, Keep
up the nice job.
Hey there, You have done a great job. I’ll certainly digg it and personally recommend it to my friends.
I’m confident they’ll be benefited from this website.
These are really great ideas regarding blogging. You have touched some fastidious points here.
Any way keep up writing.