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>
Supples Premium Diapers, X-Large (XL), 54 Count, 12-17 Kg, 12 hrs Absorption Baby Diaper Pants
₹525.00 (as of May 10, 2024 02:28 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.)Sebamed Baby Cleansing Bar 100g|Ph 5.5 | With Panthenol|No tears & Soap Free bar| For Delicate skin
₹251.00 (as of May 10, 2024 02:28 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.)Mamaearth Milky Soft Mineral Based Sunscreen SPF 30 & PA+++ With Oats, Milk and Calendula for Babies-80g | Made Safe Certified | Toxin Free | Sun Protection
₹289.00 (as of May 10, 2024 02:28 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.)Zoliva Baby Feeding Pillow with Detachable Cover Breast Feeding & Nursing Pillow Newborn, Infant Support for Baby and Mom Cradle 0-24 Months Breastfeeding Bottle (Gray-Animals)
Now retrieving the price.
(as of May 10, 2024 02:28 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.)Sebamed Baby Gentle Wash 400ml|Ph 5.5| With Allantoin| No tears formula |Clinically tested
₹763.00 (as of May 10, 2024 02:28 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.)Babycov Neem Wood Teethers for Babies | Natural and Organic | Wooden Baby Teether | Helps in Teething | for 3+ Months Babies. (1 Set Dumbell Teether)
₹179.00 (as of May 10, 2024 02:28 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.)Supples Baby Wet Wipes with Aloe Vera and Vitamin E, 72 Pieces, White (Pack of 6)
₹315.00 (as of May 10, 2024 02:28 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.)Panda Baby Products Baby Walker with Musical Toy Bar Rattles and Activity Toys Green Colour
₹1,349.00 (as of May 10, 2024 02:28 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 I Natural Plant made cloth - Super thick I 72 pcs/pack - Pack of 2 (Super Saver Pack)
₹399.00 (as of May 10, 2024 02:28 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.)Oasis Baby 100% Breathable Cotton Feeding/Nursing Apron With Pocket | Adjustable Neck Strap | Tie Back | Breastfeeding and Multipurpse Cloth - Pack of 1
₹299.00 (as of May 10, 2024 02:28 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.)USB C to Lightning Cable 1M [Apple MFi Certified] iPhone Fast Charger Cable USB-C Power Delivery Charging Cord for iPhone 14/13/12/12 PRO Max/12 Mini/11/11PRO/XS/Max/XR/X/8/8Plus/iPad
₹699.00 (as of May 10, 2024 17:31 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.)FUR JADEN Anti Theft Number Lock Backpack Bag with 15.6 Inch Laptop Compartment, USB Charging Port & Organizer Pocket for Men Women Boys Girls
₹649.00 (as of May 10, 2024 17:31 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.)boAt Type C A750 6.5A Super Fast Charging Flat Cable Cable with Stress Resistant, Tangle-free, & 480Mbps Data Transmission, 10000+ Bends Lifespan and Extended 1.5m Length (Rebellious Black)
Now retrieving the price.
(as of May 10, 2024 17:31 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.