X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect-country.html;h=c98147907e70f1b2ecb84e0a72ecb39bbd43a638;hp=724afe318ff1ec91399027532885fe842839f03b;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=6c284750de8fe49d7d4cdc6a9a4fb618697780e2 diff --git a/httemplate/elements/select-country.html b/httemplate/elements/select-country.html index 724afe318..c98147907 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 ) { @@ -94,7 +98,7 @@ Example: