Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1029821 // intTelInput Test

HTML

1  
<style>body { font-family: sans-serif }</style>
2  
<title>Telephone Input Test</title>
3  
<table width="100%" height="100%"><tr><td align=center>
4  
<h3>Telephone Input Test</h3>
5  
<form onsubmit="console.log(instance.getNumber());">
6  
<!-- intTelInput.min.css -->
7  
<link rel="stylesheet" href="https://botcompany.de/serve/1029819?ct=text/css">
8  
<input type="tel" placeholder="" id="telephone">
9  
</form>
10  
11  
<!--intlTelInput.min.js -->
12  
<script src="https://botcompany.de/serve/1029820?ct=text/javascript"></script>
13  
14  
<script>
15  
var input = document.querySelector("#telephone");
16  
console.log("input: " + input);
17  
var instance = window.intlTelInput(input, {
18  
  utilsScript: "https://botcompany.de/serve/1029822?ct=text/javascript", 
19  
  preferredCountries: ["in", "gb"],
20  
  separateDialCode: true,
21  
  initialCountry: "de"
22  
});
23  
console.log("instance: " + instance);
24  
</script>
25  
</td></tr></table>

download  render html  show line numbers   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029821
Snippet name: intTelInput Test
Eternal ID of this version: #1029821/9
Text MD5: 7fd733fabee103ac13031b56c062b721
Author: stefan
Category: html
Type: HTML
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-19 15:26:29
Source code size: 885 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 151
Version history: 8 change(s)
Referenced in: [show references]