what.form.<% $pre %>city.style.display = 'none';
what.form.<% $pre %>city_select.style.display = '';
} else if ( what.form.<% $pre %>city.style.display == 'none' ) {
+ // turn on the text city, turn off the select
+ what.form.<%$ pre %>city.value = saved_<%$pre%>city;
what.form.<% $pre %>city.style.display = '';
what.form.<% $pre %>city_select.style.display = 'none';
- what.form.<%$ pre %>city.value = saved_<%$pre%>city;
}
//run the callback
my $text_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
my $select_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
+push @$text_style, @{ $opt{'text_style'} } if $opt{'text_style'};
+push @$select_style, @{ $opt{'select_style'} } if $opt{'select_style'};
+
my @cities = cities( $opt{'county'}, $opt{'state'}, $opt{'country'} );
my $saved_city = '';
if ( scalar(@cities) > 1 || $cities[0] ) {