Hi there I need help in getting the value of the country code in a PHP variable. I am using a Jquery plugin named "International Telephone Input".
Here is my input and scripts.
<div class="group">
<!-- <input type="text" name="phone" > -->
<!-- Changes -->
<input type="tel" id="phone" name="phone" placeholder="Phone No."
style="color: #916409;"><span class="highlight"></span><span class="bar">
</span>
<label style="color: #916409;"></label>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<script src="src/js/intlTelInput.js"></script>
<script src="src/js/intlTelInput.min.js"></script>
<script>
$("#phone").intlTelInput();
</script>
I want the country code value so that I can send it to database. Any help would be appreciated