⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


teoj

Member Since 19 Jul 2013
Offline Last Active May 30 2021 07:16 AM
-----

Topics I've Started

jquery.mask in edit modal form

20 January 2021 - 05:13 PM

Hello, i have a cuestion. Im working on it about 3 hours and cant doit work.

 jQuery(document).ready(function($){
                var tlf = $(":input[name='telefono']").mask("(9999)999999999", {clearIfNotMatch: true});
                console.log(tlf.val());               
            });

I try this. Console log say undefined. I think is ok because the modal it is open after and allways, for all the lines of the table, the name of the input (nothing more like id) is telefono. I think is imposible doit width jquery. 

 

Can you say me other way?