I'm new using Jquery, and I'm trying to apply a mask in a field but i get the following error:
TypeError: $(...).mask is not a function
Here is my HTML
<div class="col-md-6">
<div class="form-group">
<label>CPF</label>
<input type="text" maxlength="17" id="cpf" name="cpf" class="form-control cpf" />
</div>
</div>
And here is my script:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.2.43/jquery.form-validator.min.js"></script>
<script src="https://raw.githubusercontent.com/igorescobar/jQuery-Mask-Plugin/master/src/jquery.mask.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#cpf").mask("999.999.999-99");
});
</script>
I already try to do $(document).ready(function($){} But i get no success. Does anyone have an ideia ? I'm kind lost after alot of tries