0
This is the header:
<script src="{{ url_for('static', filename='jquery-2.1.4.min.js') }}"></script>
<script src="{{ url_for('static', filename='main.js') }}"></script></script>
This is the field code I want to put the CPF mask (000,000,000-00):
<div class="col-sm-4">
<strong>{{ perfilForm.CPF.label }}</strong>
{{ perfilForm.CPF(class_="form-control", value=meuPerfil.CPF) }}
</div>
Inside the main.js I have this structure:
$(document).ready( function () {
$('#CPF').mask('000.000.000-00');
} );
However it does not enter at the moment I enter the numbers. Someone can give me the hint?
Hello Philip! Took a look at the console to see if it shows any errors?
– Sam