Mask Text field
-
- Posts: 1
- Joined: Mon Jul 02, 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?
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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.
Can you please send us the link to download the aforementioned jquery.mask.js? Otherwise, we won't be able to test it ourselves.
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests