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 6619257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:56:36+00:00 2026-05-25T20:56:36+00:00

I have a JQuery Mobile Multi-Page layout and I want to trigger a function

  • 0

I have a JQuery Mobile Multi-Page layout and I want to trigger a function when a select menu on my site is changed.

Currently when the menu is changed three events fire.

I have put together an example that should show you what i’m facing.

  1. From the main menu click Web Settings
  2. Change the Theme option on the page
    Notice the three alerts

Here is my code to register the event

$(document).bind("pagecreate", function() {
    $("#settings-theme").bind("change", function(event) {
        alert(event.target);
    });
});

Things I have tried:

  • Changing the data-native-menu="false" to true removed one of the event firings.
  • Removed all other pages except web settings and that also reduced the number of events firing to two.
  • In JSFiddle, Framework Options > Head (nowrap) changed to DomReady also removed a event fire.

Update
It appears that pagecreate is fired every time a page is ‘first-viewed’ as well as twice when the homepage is loaded.
So by the time the settings page is loaded the event has been binded three times.. still no solution.

  • 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-25T20:56:37+00:00Added an answer on May 25, 2026 at 8:56 pm
    $(document).bind("ready", function() {
        $("#settings-theme").live("change", function() {
            alert("changed");
        });
    });
    

    or

    $(document).bind("ready", function() {
        $("#pg-settings").delegate("#settings-theme", "change", function() {
            alert("changed");
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-level mega menu on my site (using jquery plugin), however, when
I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic
I have a single page jquery mobile application in which there are few parent
I have a single page jQuery Mobile app with four data-role='pages' in place; so,
I have added an iframe to a JQuery Mobile page: The link to it:
My jquery mobile page is WAY to zoomed out. I have tried everything I
I am using jQuery Mobile and have few pages in one HTML page. When
I have an button in my Jquery mobile page, which is using asp.net webform.
I have a jquery mobile website that has simple select. I have successfully tested
I have developed a jquery mobile application for my site http://tastykhana.in/m there is an

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.