You could use onChange to combine the values into a new value “US-90210”, saved within a hidden field on a key added as part of the form, then validate on that hidden field with a regex covering both formats. see: https://showbox.onl/, https://vidmate.onl/ & https://mobdro.onl/ .
I’m also interested in creating a new tab that loads a custom plugin in the tab. Probably the same result you are trying to do. So Bump!
see: (https://showbox.software/),(https://luckypatcher.pro/) & (https://kodi.software/).