jquery-maskmoney
jquery-maskmoney copied to clipboard
Is there any way to force whole-dollar values?
Just curious if there was a way to force whole-dollar values only, to not have any cents or sub-units.
Looked throughout the documentation and I could not find anything that specified this.
My issue is that the input I am using gets saved as a straight integer to the database, because the input is dealing with large dollar values. As such, cents are superfluous, and therefore they cannot be in the mask/input itself otherwise they seriously muck up the data input into the DB. I could always cast the value to a straight integer, but that then gives a UI issue to the user, where they see cents where none are applicable and none will be saved.
Did you ever figure this out?