Skip to content

Retain value when field is pre-populated to 0.00#96

Closed
WiseOwl9000 wants to merge 3 commits intoplentz:masterfrom
WiseOwl9000:master
Closed

Retain value when field is pre-populated to 0.00#96
WiseOwl9000 wants to merge 3 commits intoplentz:masterfrom
WiseOwl9000:master

Conversation

@WiseOwl9000
Copy link

Fantastic work on this plugin!

I've added a keepMask parameter so that if I have an input box with 0.00 the 0.00 doesn't disappear on focus. I am working on a online budget planner and it adds up the monetary values, so they have 0.00 in the fields already for the sake of clarity.

Ben Wise added 3 commits September 20, 2013 17:32
In our application we have text fields with 0.00 in them, we want those to remain when the field is focused.
Have added a keepMask paramter to allow this.
@plentz
Copy link
Owner

plentz commented Dec 14, 2013

@WiseOwl9000 thanks a lot for your pull request, but this was previously proposed in #55

@plentz plentz closed this Dec 14, 2013
plentz pushed a commit that referenced this pull request Dec 15, 2013
I also simplified the focusEvent function(a lot) and at the same time fixed a bug when the input already had a unformatted value(the case in demo4 of index.html)
fixes #55 #77 #96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments