My suggestion is to leverage the hidden/collapse attribute. Try with this example:
in case of null for $row[month] the selected item is blank and with data, it would contain less codes for many options and always working for HTML5 and bootstrap etc...