devxlogo

Validate Users’ Selections in Drop-Downs

Validate Users’ Selections in Drop-Downs

Question:
I have two drop-down menus. How do I set a validation on my page so that users cannot go all the way to the server if they don’t select something in both drop-down boxes? Here is the code I’ve been working with:

Vessels

Select a vessel:

Select type of information:

Answer:
Try this code. It performs list box validation nicely.

Select a vessel:

Select type of information:

devx-admin

Share the Post: