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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top