HTML CODE
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.5.js"></script>
<script>
function countChar(val) {
var len = val.value.length;
if (len >= 500) {
val.value = val.value.substring(0, 500);
} else {
$('#charNum').text(500 - len+ " Characters Left");
}
};
</script>
</head>
<body>
<textarea id="field" onkeyup="countChar(this)"></textarea>
<div id="charNum">500 Characters left</div>
</body>
</html>
DEMO
Check this link http://jsfiddle.net/vetri/p2h976e8/3/
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
₹479.00 (as of December 13, 2025 19:15 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
₹250.00 (as of December 13, 2025 19:15 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.)DOCAT Baby Diaper Bag, Cute Felt Diaper Caddy Organizer with Removable Shoulder Strap, Baby Basket Essentials for All Newborn Baby Products Nursery Basket (Beige)
₹999.00 (as of December 13, 2025 19:15 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
₹217.00 (as of December 13, 2025 19:15 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 December 13, 2025 19:15 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.)NYALA Stainless Steel Toddler Plates Silicone Suction, Non-Slip Baby Plates BPA Free,Unbreakable Dishwasher Safe (Purple, Plate + Bowl)
₹999.00 (as of December 13, 2025 19:15 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
₹279.00 (as of December 13, 2025 19:15 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® Door Bottom Sealing Guard, Gap Space Filler Pack of 3 Brown Colour, 39 Inch Length, Protection from Insects, Dust & Water, Noise Cancellation, Cooling Leakage Protection
₹119.00 (as of December 13, 2025 19:15 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.)Blushbaby Premium Reusable Cloth Diaper for Babies (3 Months - 3 Years) | 2 Washable Diaper with 2 Insert Pad | Adjustable, Leak-Proof, rash free & Absorbent | Freesize Diaper (5-18kg)
Now retrieving the price.
(as of December 13, 2025 19:15 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.)