I want to show total value of price like this, using Indian numbering system.
1000 = 1K
1500 = 1.5K
100000 = 1 LAC
$(document).ready(function() {
$("#numbr").on("input keydown keyup", function() {
var val = $('#numbr').val();
if (val >= 10000000)
val = (val / 10000000).toFixed(2) + ' Crore';
else if (val >= 100000)
val = (val / 100000).toFixed(2) + ' Lakh';
else if (val >= 1000)
val = (val / 1000).toFixed(2) + ' Thousand';
$('#show').val(val);
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<input id="numbr" type="text" />
<div id="show"></div>