Last active
April 11, 2018 13:29
-
-
Save luislobo14rap/120dabfad0bca73d1572a26407a6298b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//phone | |
let SPMaskBehavior=function(s){return 11===s.replace(/\D/g,'').length?'(00) 00000-0000':'(00) 0000-00009'},spOptions={onKeyPress:function(s,a,e,n){e.mask(SPMaskBehavior.apply({},arguments),n)}};$('.sp_celphones').mask(SPMaskBehavior,spOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment