X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fselect-country.html;h=f3d98767a8e6e11f68fa70a28eec2a569deefbdb;hb=92b6628c08e4478e48b6f250320a3e3e93262ec2;hp=724afe318ff1ec91399027532885fe842839f03b;hpb=6c284750de8fe49d7d4cdc6a9a4fb618697780e2;p=freeside.git 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 ) {