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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top