jQuery MeioMask - a jquery plugin for masking text inputs.
See http://cdnjs.com/libraries/jquery.meiomask.
- Latest version:
$ bower install jquery-meiomask
- Install specific version:
$ bower install jquery-meiomask#~1.1.14
- Or put in
bower.json
:"jquery-meiomask": "~1.1.14"
$ bower install
- Include script within HTML:
<script src="bower_components/jquery-meiomask/dist/meiomask.js" type="text/javascript"></script>
or
<script src="bower_components/jquery-meiomask/dist/meiomask.min.js" type="text/javascript"></script>
See meiomask-rails gem.
The only dependency is jQuery itself.
<script src="jquery-1.10.2.js"></script> <script src="meiomask.min.js"></script> Time Mask:<script>
$('input[data-mask]').each(function() {
var input = $(this);
input.setMask(input.data('mask'));
});
</script>
http://www.meiocodigo.com/projects/meiomask/
You can see some demos inside the documentation at http://www.meiocodigo.com/projects/meiomask/#mm_demos and can play with them on the tests/visual-tests.html file.