I’m using the standard digitalBush jquery mask plugin. It seems as though I’m fighting with it.
I simply want an input to have a mask (so it’ll allow 1 or 2 digits) and then show the word “months” after.
Ie. user can type 3 months or 13 months. I can’t seem to do that. Here’s as close as I could come, but if the user types just a single digit, it won’t append “months” to it. I am using this in conjunction with an HTML5 placeholder plugin.
$("#months").mask("9?9 months",{placeholder:" "});
You’ll find what your looking for here : Jquery mask plugin
Example: