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/
Himalaya Gentle Baby Shampoo (400 ml) | No Tears formula | Cleanses, softens and nourishes baby's hair
₹223.00 (as of April 6, 2026 13:29 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 Fine Motor Skills, Hand-Eye Coordination & Early Learning, Gift for Ages 10–24 Months, Set of 15 Links
₹189.00 (as of April 6, 2026 13:29 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 Little GrownUp Tunes Baby Potty Training Seat with Music, Soft Cushion & Ergonomic Backrest Tissue Storage for Kids | Toilet Seat Weight Up to 50 kg, 1 to 7 Years (Blue White)
Now retrieving the price.
(as of April 6, 2026 13:29 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.)