I was recently working on a requirement where a textbox value had to be rounded off to 2 decimal digits and ‘$’ appended in front of it. Here’s how to achieve it Round to 2 Decimal Places Type a decimal number in the TextBox and hit Tab …
Visit link:
Round off Decimal to 2 places in jQuery | PHP Hosts