jquery_mask_rails icon indicating copy to clipboard operation
jquery_mask_rails copied to clipboard

[Uncaught TypeError: ...mask is not a function] Rails 6.1 setup

Open luisampuerov opened this issue 3 years ago • 1 comments

Hello,

I'm using your gem on my ruby on rails project. Ruby: 2.6.8, Rails: 6.1.4.1. When I follow the steps in your README I cannot make use of the masks.

Can you please let me know how put the require in the application.js file?: this line: //= require jquery.mask. I think that is a comment one, but if I decomment I get an error, what is the correct format?

When I try to use $('#my_id').mask('999.999.999-99' ) in my javascript I get in the console: Uncaught TypeError: $(...).mask is not a function.

Thanks in advance. Regards

luisampuerov avatar Dec 06 '21 18:12 luisampuerov