forked from jackocnr/intl-tel-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
27 lines (26 loc) · 842 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>International Telephone Input</title>
<link rel="stylesheet" href="build/css/intlTelInput.css">
<link rel="stylesheet" href="build/css/demo.css">
</head>
<body>
<h1>International Telephone Input</h1>
<form>
<input id="mobile-number" type="tel">
<button type="submit">Submit</button>
</form>
<!-- Load jQuery from CDN so can run demo immediately -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="build/js/intlTelInput.js"></script>
<script>
$("#mobile-number").intlTelInput({
//onlyCountries: ['us', 'gb', 'ch', 'ca', 'do']
//autoFormat: true,
utilsScript: "lib/libphonenumber/build/utils.js"
});
</script>
</body>
</html>