Number Formatting in Indian and International Format

Sometime in web development, you may want to allow users change the value in indian and international format. It can be like 10,00,000 in indian format and 1,000,000 in international format. In this case, the below code can be useful for developers.

When you execute the above code, you will get a select dropdown and button. When you select the indian format and click the button, it change the value into indian format. If you select the international format in the dropdown and click the button, you will get the value in international format.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.