Page 1 of 1

Mask Text field

Posted: 02 Jul 2018
by jhlibreros
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?

Re: Mask Text field

Posted: 03 Jul 2018
by Nikita Kurguzov
Dear jhlibreros,
Can you please send us the link to download the aforementioned jquery.mask.js? Otherwise, we won't be able to test it ourselves.