Hi, Can i ask how can i make the textbox to full width?
the following is my reference url: Get dial code and phone number from International Telephone Input using jQuery
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PhoneNumber.aspx.vb" Inherits="tools_PhoneNumber" %>
<!DOCTYPE html>
<html>
<head>
<title>International Telephone Input With Flags and Dial Codes</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.8/css/intlTelInput.css" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.8/js/intlTelInput-jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var code = "+60123884208"; // Assigning value from model.
$('#txt_mobile').val(code);
$('#txt_mobile').intlTelInput({
autoHideDialCode: true,
autoPlaceholder: "ON",
dropdownContainer: document.body,
formatOnDisplay: true,
hiddenInput: "full_number",
initialCountry: "auto",
nationalMode: true,
placeholderNumberType: "MOBILE",
preferredCountries: ['MY'],
separateDialCode: true
});
$('#btnSubmit').on('click', function () {
var code = $("#txt_mobile").intlTelInput("getSelectedCountryData").dialCode;
var phoneNumber = $('#txt_mobile').val();
var name = $("#txt_mobile").intlTelInput("getSelectedCountryData").name;
alert('Country Code : ' + code + '\nPhone Number : ' + phoneNumber + '\nCountry Name : ' + name);
});
});
</script>
</head>
<body>
<form runat="server">
<div class="row">
<div class="col-12">
<asp:TextBox ID="txt_mobile" runat="server"></asp:TextBox>
</div>
</div>
</form>
</body>
</html>