Answers for "link in select option"

1

selected options with link

<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"
	<option value="fr">
        Français <!-- Go root/fr on click -->
    </option>
</select>
Posted by: Guest on March-02-2021

Browse Popular Code Answers by Language