igorescobar/jQuery-Mask-Plugin — pull request #139 by Dreanmer (2014-04-22 15:53:46+00:00)
Title: add new feature, clear if not match

i liked this plugin, it have many options more than this (http://digitalbush.com/projects/masked-input-plugin/), but i need this feature, to remove the value if not fully fill the mask. Then i added to it:

* add new feature to clear the value if it not match the mask;

use: $('field').mask('00/00/0000', {removeIfNotMatch: true});