Skip to content

Instantly share code, notes, and snippets.

Created August 27, 2010 15:32
Show Gist options
  • Save anonymous/553587 to your computer and use it in GitHub Desktop.
Save anonymous/553587 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery(function($){
$.mask = {
//Predefined character definitions
definitions: {
'a': "[a]",
'b': "[b]",
'c': "[c]",
'd': "[d]",
'e': "[e]",
'f': "[f]",
'g': "[g]",
'h': "[h]",
'i': "[i]",
'j': "[j]",
'k': "[k]",
'l': "[l]",
'm': "[m]",
'n': "[n]",
'o': "[o]",
'p': "[p]",
'q': "[q]",
'r': "[r]",
's': "[s]",
't': "[t]",
'u': "[u]",
'v': "[v]",
'w': "[w]",
'x': "[x]",
'y': "[y]",
'z': "[z]",
' ': "[ ]",
'!': "[!]",
'?': "[?]"
}
};
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment