When I include the attribute has-empty-data=true in the select tag, an empty option will automatically be added to the list of options. How can I specify the text for this empty option?
<select name="address[province]" title="{{ 'customer.addresses.province' | t }}" has-empty-data="true" data-default="{{ form.province }}" id="provinceExist"></select>
I attempted to set the text for the empty option using the following code but it did not work:
document.getElementsByName('provinceExist').options[0].innerHTML = "Water";