Skip to content
Public Ticket #28643

required a Dropdwn base menu in top bar in mobile version

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

Please check the code I created below:

<label for="website-select">Choose a website:</label>
<select id="website-select" onchange="redirectToWebsite()">
    <option value="">--Select an option--</option>
    <option value="https://www.google.com">Google</option>
    <option value="https://www.facebook.com">Facebook</option>
    <option value="https://www.twitter.com">Twitter</option>
</select>
<script>
function redirectToWebsite() {
    var select = document.getElementById('website-select');
    var url = select.value;
    if (url) {
        window.location.href = url;
    }
}
</script>

Regards,
PenciDesign.

Ram Kumar started the conversation

Conversation Start

Hi,

I need a dropdown base menu mobile version on the top menu. Please advise what should I use. I have tried with custom HTML to display dropdowns but have not been able to navigate to other websites.
Please find the screenshot for your kind reference and please advise any option.

Want to join this conversation or access attachments? Sign in first.