diff --git a/assets/js/admin/settings-views-html-settings-tax.js b/assets/js/admin/settings-views-html-settings-tax.js index 93c78f4c286..1bc40288b46 100644 --- a/assets/js/admin/settings-views-html-settings-tax.js +++ b/assets/js/admin/settings-views-html-settings-tax.js @@ -116,6 +116,9 @@ return false; }); + /** + * Postcode and city don't have `name` values by default. They're only created if the contents changes, to save on database queries (I think) + */ $('.wc_tax_rates td.postcode, .wc_tax_rates td.city').find('input').change(function() { $(this).attr( 'name', $(this).attr( 'data-name' ) ); });