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


jquery.mask in edit modal form

mask modal jquery

  • Please log in to reply
2 replies to this topic

#1 teoj

teoj

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 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?



#2 teoj

teoj

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 21 January 2021 - 10:40 AM

I see this in the forum https://www.groceryc...the-modal-form/

but i cant do it works. I only put a simple console.log(5); and dont works.

 



#3 teoj

teoj

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 22 January 2021 - 06:30 AM

Ok, now working. Some problem With fields NULL. But working on it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users