function licenseSelectorCheck() { var selector = document.getElementById("wpLicense"); if (selector.selectedIndex > 0 && selector.options[selector.selectedIndex].value == "" ) { // Browser is broken, doesn't respect disabled attribute on