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