I am trying to use intl-tel-input ... https://github.com/Bluefieldscom/intl-tel-input#utilities-script
I included css at the top of the sheet
<link rel="stylesheet" href="css/intlTelInput.css">
My form is in the middle with the identifier "tel" ... I also use parsley to check parts of the form, and this works fine,
<input class="form-control input-sm" id="tel" name="tel" type="tel" data-parsley-required>
and at the bottom of my page I have included jquery, bootstrap, etc. and intl-tel-input js ....
<script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/parsley.js"></script> <script src="js/intlTelInput.min.js"></script>
And then I initialize the utility ...
$("#tel").intlTelInput({ utilsScript: "js/utils.js" });
The form element takes the flags of the country, so the plug-in works, but the checks are not performed. The utils.js file is a โcompiledโ version of the file, which I believe is the right one to use, but I tried both the compiled and non-compiled versions.
What am I missing here? Why does validation and formatting not work?
thanks.
source share