Validation:https://parsleyjs.org/
I try to implement floats and also digits. When I have numbers for the price in USA format it will not be the correct code. How to manage floats or digits. An example:
The price can be 10 USD, 10.55 not 10.5 USD. As I understand it will work required just floats using type="text" and data-parsley-type="number", but how to solve max. two decimals?
Is this working and the correct?
data-parsley-pattern="[0-9]*(\.?[0-9]{2}$)" using type="text" and data-parsley-type="number"