X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/js/country-select-js
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
js
/
country-select-js
/
📁
..
📄
.gitignore
(14 B)
📄
LICENSE
(1.04 KB)
📄
README.md
(6.64 KB)
📄
bower.json
(546 B)
📁
build
📄
demo.html
(1.27 KB)
📄
gulpfile.js
(1.96 KB)
📄
index.js
(57 B)
📄
package-lock.json
(157.51 KB)
📄
package.json
(837 B)
📄
screenshot.png
(17.07 KB)
📁
src
Editing: demo.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Country Select JS</title> <link rel="stylesheet" href="build/css/countrySelect.css"> <link rel="stylesheet" href="build/css/demo.css"> </head> <body> <h1>Country Select JS</h1> <form> <div class="form-item"> <input id="country_selector" type="text"> <label for="country_selector" style="display:none;">Select a country here...</label> </div> <div class="form-item" style="display:none;"> <input type="text" id="country_selector_code" name="country_selector_code" data-countrycodeinput="1" readonly="readonly" placeholder="Selected country code will appear here" /> <label for="country_selector_code">...and the selected country code will be updated here</label> </div> <button type="submit" style="display:none;">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/countrySelect.js"></script> <script> $("#country_selector").countrySelect({ // defaultCountry: "jp", // onlyCountries: ['us', 'gb', 'ch', 'ca', 'do'], // responsiveDropdown: true, preferredCountries: ['ca', 'gb', 'us'] }); </script> </body> </html>
Upload File
Create Folder