Question

I currently have a dropdown menu that will direct the user to different URLs based on what they have selected. However, when I disable javascript and select items from the dropdown, the user remains on the same page. What is the best way to handle this for users who have JS disabled?

Was it helpful?

Solution

Based on the onsubmit tag you included, I will assume you are using a <select> menu. Without JavaScript, you need either a different element, like a CSS-based dropdown menu with actual links, or a server-side solution to accept the form submission and redirect to the URL of the selected item, if the URL is in the value.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top