Amount Validator JS [Snippets]

I have been working on Fintech projects for a long time. While working with business people I have realized that they want to see financial items in a proper business format. One of the most common requirements is they want to input amounts filed in a business format (like comma-separated amounts field by only allowing two decimal points, etc).

I have searched a lot on the internet and didn’t there any complete article or guideline to validate and take input of the amount field properly, and finance clients always want to input/type the amount field in a way where the user can feel that he/she is inputting/typing an amount, not a number or anything else.