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>
rabitat Sip Around Stainless Steel Sipper 360ml | 2 Years Brand Warranty | Leak Proof | BPA Free | Sippy Cup for Kids with Soft Silicone Rim | Ergonomic Design, Sunny Roar
₹999.00 (as of April 10, 2026 13:48 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.)Skillmatics Connectable Learning Link Toy for Toddlers – Fun & Educational Snap-Together Toy for Babies, Fine Motor Skill, Hand-Eye Coordination & Early Learning, Gift for Ages 10–24 Months, 15 Links
₹189.00 (as of April 10, 2026 13:48 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.)Remote Control Shaped Teether for 6 to 12 Months Baby, Helps Biting Skills Development, Colour & Shape Recognition, Teething Toys for Babies and Toddlers (Remote Black)
₹199.00 (as of April 10, 2026 13:48 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 Gentle Baby Wipes with Lid (72 wipes x4 packs -288 wipes) |100% Biodegradable Plant-based fabric | Indian Lotus & Aloe Vera | Skin Friendly PH| Extra Soft
₹375.00 (as of April 10, 2026 13:48 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)
₹213.00 (as of April 10, 2026 13:48 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.)Cute Baby Panda Night Light, LED Lamp, Warm White Glow, Kawaii Character Design,Kids Bedroom Decor (Size = H-8 CM x W-6 CM x B-6 CM)
₹150.00 (as of April 10, 2026 13:48 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.)OCEANEVO Cute Felt Diaper Caddy Organiser Bag WITH Luggage Tag AND Bear Charm, Baby Basket for New Born Baby Essential Products with Compartments and Handle - 41 x 25 x 18 Cm - Beige - 1 Year Warranty
₹899.00 (as of April 10, 2026 13:48 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.)Tidy Sleep Printed Baby Dry Sheet Waterproof Mattress Protector for Newborns | Soft Quick-Dry Bed Protector Mat | Reusable Leakproof Pee Pad, Crib & Travel Dry Sheet | Little Bear Goodnight (Medium)
₹239.00 (as of April 10, 2026 13:48 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.)AIRSEE Baby Nail Trimmer Electric Nail Drill Safe File,Baby Nail Clippers with Light & 6 Grinding Pads Polishing Shape Tools for Newborn Toddler or Adults Toes and Fingernails, Kids Nail Care (Blue)
₹299.00 (as of April 10, 2026 13:48 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.)Pampers Active Baby Tape Style Baby Diapers, Newborn/Extra Small (NB/XS) Size, 72 Count, Adjustable Fit with 5 star skin protection, Up to 5kg Diapers
₹1,013.00 (as of April 10, 2026 13:48 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.)Gesto Portable Fan Rechargeable with LED Light – Foldable Mini Fan, Small Fan,USB Charging Hand Fan with 1200mAh Battery & 3 Speed Modes | Travel, Makeup, Kitchen,Women’s Personal Pankhaa - Grey
₹425.00 (as of April 10, 2026 17:47 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.)Apple iPad 11″: A16 chip, 27.69 cm (11″) Model, Liquid Retina Display, 128GB, Wi-Fi 6, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Blue
Now retrieving the price.
(as of April 10, 2026 17:47 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.