This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a dropdown when user selects a value in it immediately another dropdown appears.If user clicks on submit without selecting a value in second dropdown,The second dropdown is disappearing and an error message to enter value in first dropdown is being displayed .
My doubt is How to make First Dropdown stable after selecting a value.When user tries to click submit button without entering a value in second dropdown I wanna display an alert message to user saying to enter city value and how to prevent its disaaperance after click on submit button.