formatter.js
formatter.js copied to clipboard
Placeholder
It would be nice to have a third option for placeholder text.
Ex: new Formatter(birthDateInput, { 'pattern': '{{99/99/9999}}', 'persistent': true
'placeholder': 'MM/DD/YYYY'
});
Curious on how you would would like to see this implemented. Would the functionality be different than the html placeholder attribute?
Would love to see this functionality implemented! It should work just as the normal placeholder attribute does currently, i.e. as soon as user input is detected, the placeholder gets replaced with the pattern.
@tjramage I'm still not sure I understand... why not just use the html placeholder attribute?
Doesn't this plugin override the placeholder attribute when persistent is set to true?
@AdamGerthel Not only on persistent: true
. I cannot see a placeholder.