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/
GIBBLES Baby Hooded Blanket for Newborn Babies (KOOKI, Beige, 0–1 Yr) | Super Soft Plush Receiving Blanket, All Season Baby Wrapper, Swaddle Blanket & Bath Towel, Nursery Blanket, (KOOKI, Beige)
₹299.00 (as of November 15, 2026 14:11 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.)StarAndDaisy Baby Walker/Multipurpose Push Walker for 0-24 Months- (Yellow)
₹998.00 (as of November 15, 2026 14:11 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)
₹200.00 (as of November 15, 2026 14:11 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.)NONIU Electric Breast Pump for Feeding Mothers | Portable Breast Milk Extractor with Digital Display | Breastmilk Pumping Machine with Adjustable Suction Levels
₹999.00 (as of November 15, 2026 14:11 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 | 62 Baby Diapers | Large | 9-14 Kg | 12 Hrs Absorption | Cushiony Cotton Soft Fabric | Phthalates-Free | Triple Leak Guard
Now retrieving the price.
(as of November 15, 2026 14:11 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.)