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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:50:37+00:00 2026-06-01T12:50:37+00:00

For my mobile app I am using jquery mobile with multipage layout (one html,

  • 0

For my mobile app I am using jquery mobile with multipage layout (one html, multiple pages). I referenced a footer on all pages with the same footer id. On one of the pages, the footer text is changed. How to propagate this change to all other footers on the other pages of my multipage jquery mobile app.

    <div data-role="page" id="page1">
  <header data-role="header"></header>      
      <div class="content" data-role="content"></div>
  <footer id="myfooter" data-role="footer"</footer>
    </div>
    <div data-role="page" id="page2">
  <header data-role="header"></header>      
      <div class="content" data-role="content"></div>
  <footer id="myfooter" data-role="footer"</footer>
    </div>
    <div data-role="page" id="page3">
  <header data-role="header"></header>      
      <div class="content" data-role="content"></div>
  <footer id="myfooter" data-role="footer"</footer>
    </div>  

On page 2, the user chooses a date, and this date is included in the footer of page2:

    $('#page2' ).bind('pageshow',function(event){   
       var infoFooter = '<center>Date: ' + date_footer + '</center>';
       $('#myFooter').empty().append(infoFooter);
    });

How to propagate this change to all footers on all pages?

  • 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-06-01T12:50:38+00:00Added an answer on June 1, 2026 at 12:50 pm

    You should be able to update all elements on a page by selecting on another aspect of the elements (besides picking by id using the ‘#’ symbol). The idea is to pick based on an attribute / aspect that they all share such as a class you specifically give them.

    Something that I have also found successful is to select on attributes that ‘begin with’ ‘something’ which looks like this:

    $("[id^=myFooter]").empty().append(infoFooter);
    

    This would find all the elements that have an id that starts with “myFooter”. You might need to bind to something other than #page2 to cause it to work but there’s also the possibility that it will propagate any way.

    You can see other examples here of selecting like this.

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

Sidebar

Related Questions

I am building a mobile app using Jquery mobile. It´s a multi-page app all
I am rendering HTML locally in an iPad app using jQuery Mobile. The titles
I'm developing a mobile app using ASP.Net MVC to generate HTML 5 pages. The
I'm building a mobile app using HTML, CSS, Javascript and jQuery. Is there a
I have a mobile app created using HTML/JS(jQuery)/CSS and I'm looking to include page
I'm using jQTouch to build a simple mobile app with an html/js/jquery form that
I am creating a mobile app using jquery mobile, PHP using JSON for fetching
I have some strange scrolling problems with my PhoneGap (using jQuery Mobile) app: I'm
I'm using Phonegap and Jquery Mobile on an Android app. I need to save
I'm making a mobile app using phonegap. That is to say, it's all done

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.