wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How to resolve this issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

How to resolve this issue

Shrikanth Nekkanti
Ranch Hand

Joined: Jul 12, 2007
Posts: 48
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.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

You can do it with a little JavaScript.

You check for the selectedIndex property of the dropdown box and make a decision.

Just google for the same.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to resolve this issue
 
Similar Threads
Dropdown menu in Servlet to displayed the selected value
Resolve this please
Question on .submit and reloading form values AFTER the submit button is clicked
After submit the link parameter get null
Error handling in Struts