I am trying to add $123,123.12a comma format and limit the decimal to two places who can help with regex. I have tried so. I have an input window now that when I enter, it comes like 1231244, but I need how $123,123.12, how to make a function to achieve this, you can help with the code.
<input type="text" value="$0.00" step="0.01"/>
source
share