summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-country.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-country.html')
-rw-r--r--httemplate/elements/select-country.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/elements/select-country.html b/httemplate/elements/select-country.html
index 724afe318..f3d98767a 100644
--- a/httemplate/elements/select-country.html
+++ b/httemplate/elements/select-country.html
@@ -40,6 +40,8 @@ Example:
}
function <% $pre %>country_changed(what, callback) {
+
+ what.form.<% $pre %>state.disabled = 'disabled';
country = what.options[what.selectedIndex].value;
@@ -61,6 +63,8 @@ Example:
stateLabel = <% $opt{state_empty_label} || '(n/a)' |js_string %>;
opt(what.form.<% $pre %>state, statesArray[s], stateLabel);
}
+
+ what.form.<% $pre %>state.disabled = '';
//run the callback
if ( callback != null ) {