This dropdown selector contains all 50 us States and 13 Canadian provinces.
The :empty pseudo class doesn't work on nested elements or elements with spaces, tabs, newlines, etc. This bit of jQuery handles cases where an element needs to be hidden but doesn't meet the conditions necessary for :empty to be a viable option.