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/
Mamypoko Pants All Night Absorb| Pant Style Baby Diapers Medium Size(M), 72 Count, Ideal for 7-12Kgs|+50% Wider and Repeated Absorption for All Night 12hr Protection from Leakage, Prevents Heaviness.
₹560.00 (as of November 6, 2025 13:38 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 Comfy Shield Disposable Nursing Breast Pads 24-Hours Leak Protection 3D Shaped Honeycomb Design Strong Adhesive Tape Skin Friendly Material Breastfeeding pad (White, Pack of 36)
₹241.00 (as of November 6, 2025 13:38 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.)Similac Classic Stage 1 Infant Formula (Up to 6 months) - 800 GM Box
Now retrieving the price.
(as of November 6, 2025 13:38 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.)