Showing 1 – 2 of 2 replies
wisepartner

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

stepofweb
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
wisepartner
wisepartner PURCHASED
2 years ago
works fine. thank a lot :)