Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7502529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:54:08+00:00 2026-05-29T20:54:08+00:00

I have a select menu that iam using to change the laguage to this

  • 0

I have a select menu that iam using to change the laguage to this site.

Onchange iam trying to refresh the current page and pass the variables to the link or the adress.

this is the code ;

 <form action='index.php' method="get" id='myForm'>
<select name="language" id="language" data-theme="b" style="float:right;" data-native-menu="false" 
onchange="$.mobile.changePage( 'index.php', {
type: 'get', 
data: $('form#myForm').serialize()} );">

                <option value="eng">English</option>
                <option value="ita">Italian</option>
                <option value="esp">Spanish</option>
                <option value="fr">French</option>
            </select>
</form>

However as a result i get somethingh along the lines of ; index.php?language=ita&language=eng&language=eng&language=eng&language=eng

iam trying to get only index.php?language=ita

Also would it be possible to point the submit to the current page and not index.php

Thanks in adavanced to any one with the time to help me out

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:54:09+00:00Added an answer on May 29, 2026 at 8:54 pm

    Gregor,

    Try to use unobtrusive javascript instead of inline. something along the following lines may work:

    <form action='index.php' method="get" id='myForm'>
        <select name="language" id="language" data-theme="b" style="float:right;" data-native-menu="false">
            <option value="eng">English</option>
            <option value="ita">Italian</option>
            <option value="esp">Spanish</option>
            <option value="fr">French</option>
        </select>
    </form>
    
    <script>
        $(function() {
            $('#language').change(function() {
                $.mobile.changePage('index.php', {
                    type: 'get',
                    data: $('form#myForm').serialize()
                });
            });
        });
    </script>
    

    untested, so no guarantees, but at least a little cleaner. Also, if you flesh out the requirement here (i presume to change page based on the select option values), I think we could find a solution pretty swiftly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple dropdown menu: <form class=feedmenu align=center> <select onchange=showRSS1(this.value)> <option value=>Select an
I have a select that I'd like to use the custom menu display (rather
I have a SELECT LIST MENU containing products and on this menu i use
I have this simple Select box that is suppose to store the selected value
I have a UL LI menu that I am turning into a select dropdown
I have a select menu with a list of country names. I'm using jquery
I need to have a drop-down menu that allows you to select a year
I'm making a dynamic select menu using Jquery mobile. First problem that i am
I have done this using javascript for the edit bug page, where I used
Hi I am trying to create a drop down menu using GWT. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.