Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
205
Multipurpose Templates
165
Landing Pages
159
Portfolios & Resumes
86
Ecommerce
48
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
108
Topics
General
278
Business & Corporate
124
Design & Creative Services
115
Apps & Software
55
Retail & Shopping
36
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
17
Education & Learning
16
Finance & Accounting
16
See all →
Compatible with
Bootstrap
784
Tailwind CSS
49
PHP
43
React
42
Laravel
27
Python
25
Angular
24
Vue.js
22
Django
21
ASP.NET Core
14
See all →
Discussion on
Smarty - Website + Admin + RTL
Details
Discussion
Back to discussions
Showing 1 – 2 of 2 replies
←
1
→
I would like to know how to reload a plugin after calling Lightbox.
wisepartner
PURCHASED
2 years ago
I called the page using Lightbox by ajax
Unable to load Masked Inputs
I want to know how to get the Masked Inputs normally after opening a popup window using ajax.
The current version used is v2.3.2
Last edited 2 years ago
Reply
stepofweb
SELLER
2 years ago
Hello wisepartner,
1. You can reinit masked inputs by simply calling _form() javascript function.
2. You can manually load masked inputs like this:
<script src="assets/plugins/form.masked/jquery.maskedinput.js></script>
<script>
jQuery('input.masked').each(function() {
var _t = jQuery(this);
_format = _t.attr('data-format') || '(999) 999-999999',
_placeholder = _t.attr('data-placeholder') || 'X';
jQuery.mask.definitions['f'] = "[A-Fa-f0-9]";
_t.mask(_format, {placeholder:_placeholder});
});
</script>
Hope this helps.
Thanks,
Dorin
Reply
wisepartner
PURCHASED
2 years ago
works fine. thank a lot :)
Reply
Close
I would like to know how to reload a plugin after calling Lightbox.
Unable to load Masked Inputs
I want to know how to get the Masked Inputs normally after opening a popup window using ajax.
The current version used is v2.3.2
Last edited 2 years ago
1. You can reinit masked inputs by simply calling _form() javascript function.
2. You can manually load masked inputs like this:
<script src="assets/plugins/form.masked/jquery.maskedinput.js></script>
<script>
jQuery('input.masked').each(function() {
var _t = jQuery(this);
_format = _t.attr('data-format') || '(999) 999-999999',
_placeholder = _t.attr('data-placeholder') || 'X';
jQuery.mask.definitions['f'] = "[A-Fa-f0-9]";
_t.mask(_format, {placeholder:_placeholder});
});
</script>
Hope this helps.
Thanks,
Dorin