conutry-code:GWM
This commit is contained in:
parent
9225d33001
commit
7eaf4fa744
@ -172,7 +172,7 @@ $(document).ready(function(e){
|
|||||||
var country = $("#country").val();
|
var country = $("#country").val();
|
||||||
if(country == 'Canada')
|
if(country == 'Canada')
|
||||||
{
|
{
|
||||||
canada_array = ["British Columbia","Alberta","Saskatchewan","Manitoba","Ontario","Quebec","New Brunswick","Prince Edward Island","Nova Scotia","Newfoundland and Labrador","Yukon","Northwest Territories","Nunavut"];
|
canada_array = ["Alberta (AB)","British Columbia (BC)","Manitoba (MB)","New Brunswick (NB)","Newfoundland and Labrador (NL)","Northwest Territories (NT)","Nova Scotia (NS)","Nunavut (NU)","Ontario (ON)","Prince Edward Island (PE)","Quebec (QC)","Saskatchewan (SK)","Yukon (YT)"];
|
||||||
let result = '';
|
let result = '';
|
||||||
if($('#state').val() == ''){ result += ' <option>Select Province</option>'; }else{ result += ' <option value="'+$('#state').val()+'">'+$('#state').val()+'</option>'; }
|
if($('#state').val() == ''){ result += ' <option>Select Province</option>'; }else{ result += ' <option value="'+$('#state').val()+'">'+$('#state').val()+'</option>'; }
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ $(document).ready(function(e){
|
|||||||
var country = $("#country").val();
|
var country = $("#country").val();
|
||||||
if(country == 'Canada')
|
if(country == 'Canada')
|
||||||
{
|
{
|
||||||
canada_array = ["British Columbia","Alberta","Saskatchewan","Manitoba","Ontario","Quebec","New Brunswick","Prince Edward Island","Nova Scotia","Newfoundland and Labrador","Yukon","Northwest Territories","Nunavut"];
|
canada_array = ["Alberta (AB)","British Columbia (BC)","Manitoba (MB)","New Brunswick (NB)","Newfoundland and Labrador (NL)","Northwest Territories (NT)","Nova Scotia (NS)","Nunavut (NU)","Ontario (ON)","Prince Edward Island (PE)","Quebec (QC)","Saskatchewan (SK)","Yukon (YT)"];
|
||||||
let result = ' <option>Select Province</option>';
|
let result = ' <option>Select Province</option>';
|
||||||
canada_array.forEach((element) => {
|
canada_array.forEach((element) => {
|
||||||
result += ' <option value="'+element+'">'+element+'</option>';
|
result += ' <option value="'+element+'">'+element+'</option>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user