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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:55:47+00:00 2026-06-08T17:55:47+00:00

Developing a mobile web app with: jquery 1.7.1 jquery-mobile 1.1.1 Rails 3.2.1 Here, I

  • 0

Developing a mobile web app with:

  • jquery 1.7.1
  • jquery-mobile 1.1.1
  • Rails 3.2.1

Here, I intended to change content of time indicator (<span id="wake_up_time_display">) as the value of slider changes.

Following works when the target URL is directly called.

But in many occasions when jQuery mobile displays <div data-role="page">, the indicator remains unchanged. (Value of the slider itself changes.)

<label class="select" for="daily_record_wakeup_time">
    I'll wake up at: 
</label>
<span id="wake_up_time_display"> 6:00</span>
<input data-theme="e" data-track-theme="d" id="daily_record_wakeup_time" 
       max="480" min="240" name="daily_record[wakeup_time]" step="15" 
       type="range" value="360" />

<script>
    $("input[id='daily_record_wakeup_time']").live ("slidercreate", function () {
        $("input[id='daily_record_wakeup_time']").bind ("change", function (event) {
            $("#wake_up_time_display").text(Math.floor($(this).val() / 60) +
                    ":"+($(this).val() % 60 < 10 ? "0":"")+$(this).val() % 60);
        });
    });
</script>
  • 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-08T17:55:48+00:00Added an answer on June 8, 2026 at 5:55 pm

    Why don’t you just use the CSS selector for it

    $("#daily_record_wakeup_time")
    

    instead of passing in the ID as an attribute?
    Also, if you could avoid the use of the method “live” and instead use “delegate” would be great. jQuery has already deprecated this method, it’s no longer supported by newer versions. Make sure that you have the custom event “slidercreate” somewhere in your libraries.

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

Sidebar

Related Questions

I am developing a mobile web app. Currently I have this snippet of jQuery
I am developing a JQuery mobile web app and I am having some problems
I am developing a jQuery mobile web app, which currently has two pages. First,
I'm developing a web app with jquery mobile and Bootstrap,however I have a problem
I'm currently developing a web application based on jQuery Mobile. I would like to
I m developing mobile web application for Android OS. Here, my requirement is to
I'm developing a mobile app using PhoneGap and jQuery Mobile. From what I've read
I am developing Sencha-Touch 2.0 MVC based mobile web-app. Can you please tell me
Hi I am developing a web app for mobile. I am facing a problem
I'm developing a web app. MySql/PHP back-end, and HTML/jQuery front-end. I wanted to use

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.