Mask Text field
Posted: 02 Jul 2018
I tried to user jquery.mask. js with the next instructions, but i cannot make it work?
//set jQuery to global scale, so uploaded files can use it
window.$ = $;
window.jQuery = $;
//import uploaded files to the page
var imported = document.createElement('script');
//don't forget to change site url to your site name, shared documents is the default name of "Documents" folder
imported.src = '/sites/Pas/SiteAssets/js/jquery.mask.js';
document.head.appendChild(imported);
//need a little time to load js file
setTimeout(function(){
$('.ccsContacto').mask("99\99\9999");
}, 500);
Can you help me please?
//set jQuery to global scale, so uploaded files can use it
window.$ = $;
window.jQuery = $;
//import uploaded files to the page
var imported = document.createElement('script');
//don't forget to change site url to your site name, shared documents is the default name of "Documents" folder
imported.src = '/sites/Pas/SiteAssets/js/jquery.mask.js';
document.head.appendChild(imported);
//need a little time to load js file
setTimeout(function(){
$('.ccsContacto').mask("99\99\9999");
}, 500);
Can you help me please?