jQuery version now working
This commit is contained in:
22
example.html
22
example.html
@@ -5,7 +5,9 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Example 1</h1>
|
||||
<h1>country-region-dropdowns example</h1>
|
||||
|
||||
<h2>Example 1</h2>
|
||||
|
||||
<p>
|
||||
This is a simple no-frills example.
|
||||
@@ -17,7 +19,7 @@
|
||||
<hr size="1" />
|
||||
|
||||
|
||||
<h1>Example 2</h1>
|
||||
<h2>Example 2</h2>
|
||||
|
||||
<p>
|
||||
Custom default option texts for both the country and region dropdowns.
|
||||
@@ -29,7 +31,7 @@
|
||||
<hr size="1" />
|
||||
|
||||
|
||||
<h1>Example 3</h1>
|
||||
<h2>Example 3</h2>
|
||||
|
||||
<p>
|
||||
The country dropdown values are by default the same as the display values: the full country names.
|
||||
@@ -38,10 +40,20 @@
|
||||
</p>
|
||||
|
||||
<select class="crs-country" data-region-id="three" data-value="2-char"></select>
|
||||
<select id="three" data-default-option=""></select>
|
||||
<select id="three"></select>
|
||||
|
||||
<hr size="1" />
|
||||
|
||||
<script src="source/country-region-selector.js"></script>
|
||||
<h2>Example 4</h2>
|
||||
|
||||
<p>
|
||||
Pre-filling the fields on page load.
|
||||
</p>
|
||||
|
||||
<select class="crs-country" data-region-id="four" data-default-value="Canada"></select>
|
||||
<select id="four" data-default-value="British Columbia"></select>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="source/jquery.crs.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user