Validate campus calling javascript function

0

I need to validate the campus phone and CPF, and for this I found the following script link

But when I play here in JSF it does not work. In this I open a new tab from the codepen.io site and I played the same code without changing anything and what happened was that it does not work either.

link

Take the test.

Does anyone know what's missing to work the same?

    
asked by anonymous 13.01.2018 / 18:08

2 answers

0

You must use the external resource VanillaMasker

<script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-masker/1.1.0/vanilla-masker.min.js"></script>
    
13.01.2018 / 18:43
0

You have missed the CDN vanilla-masker. min.js , yes it will work correctly.

HTML

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/vanilla-masker/1.1.0/vanilla-masker.min.js"></script>
    
13.01.2018 / 18:44