This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello everyone, In our application, managers log-in and see some Buttons, or regular users will log-in and see different buttons. Without knowing who has logged in, I'd like to disable all buttons in this function:
The trouble is, if a user has logged on, the manager's button isn't displayed, and the first 'disable' gives me a script error. Same thing if the manager logged on: the user's button doesn't display, and the second 'dsiable' gives an error. How can check to see if a button is displayed, or absent?