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>
Koochie-Koo Soft Muslin Cloth for New Born Baby 500 GSM 25x25 cm, Pack of 5 Gentle Baby Towels Newborn Premium Bath Towels for Delicate Skin Gift for New Parents Fabric
₹299.00 (as of November 2, 2025 13:18 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 | 54 Baby Diapers | XL | 12-17 Kg | 12 Hrs Absorption | Cushiony Cotton Soft Fabric | Phthalates-Free | Triple Leak Guard
₹439.00 (as of November 2, 2025 13:18 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 Baby Swing for Kids | Non-Toxic Plastic | Indoor & Outdoor Use | Adjustable Design with Safety Belt | Age 6 Months to 4 Years | Green & Grey
₹1,099.00 (as of November 2, 2025 13:18 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.)SWAPKART (Pack of 3, 39 Inches) Door Guard – Bottom Seal Strip Gap Filler for Doors | Soundproof, Noise Reduction, Energy Saving, Dust & Insect, Rat Protector, Door Strip for Home & Office
₹149.00 (as of November 2, 2025 13:18 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.)Mother Sparsh 99% Pure Water (Unscented) Baby Wipes with Lid I Natural Plant made cloth - Super thick Wet Wipes I 72 pcs/pack - Pack of 2 (Super Saver Pack)
₹369.00 (as of November 2, 2025 13:18 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.)R for Rabbit Large L Size Premium Feather Diaper for Baby 9 to 14 kgs (46 Combo Pack Offer)
₹589.00 (as of November 2, 2025 13:18 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 XL Size (Extra Large) Pants Style | 12-17 kg | 54 Count - Pack of 1 | Super Jumbo Baby Diaper with Leakage Guard, Wetness Indicator & 12 Hours Absorption
₹487.00 (as of November 2, 2025 13:18 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 Feeding Stainless Steel Bottle, Milk Feeding, Water Feeding 250 ML(Pack of 1),RB_Bottles_B27
Now retrieving the price.
(as of November 2, 2025 13:18 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.