The problem I have is that the check works fine in IE8, FireFox and Chrome, but the check does not work in IE7, in IE7 the check always comes back as null.
Expand|Select|Wrap|Line Numbers
- <script language=javascript>
- function validateData() {
- if ((!(typeof(document.update.ou_new)== "undefined")) && (document.update.ou_new.options[document.update.ou_new.selectedIndex].value == "")) {
- alert("Please select an (ou)");
- return false;
- }
- document.update.submit();
- return true;
- }
- </script>
document.update.ou_new.options[document.update.ou_new.selectedIndex].value == ""
Always comes back empty with IE7 even if there is a value there, in IE8 and others the value comes back as expected.