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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:31:04+00:00 2026-05-28T19:31:04+00:00

You can see the code live here: http://jsfiddle.net/z3xV3/50/ My HTML: <div id=slider></div> <input id=sliderValue

  • 0

You can see the code live here: http://jsfiddle.net/z3xV3/50/

My HTML:

<div id="slider"></div>
<input id="sliderValue" />
<div id="boksTimer"></div>

My JQUERY:

$(document).ready(function() {

$("#slider").slider({value:'',min: 0,max: 150,step: 0.5, range: 'min',
    slide: function( event, ui ) {
        $( "#amount" ).html( ui.value + ' timer');
        $('#sliderValue').val(ui.value);
    }
});

    var thumb = $($('#slider').children('.ui-slider-handle'));   
    setLabelPosition();    

    $('#slider').bind('slide', function () {        
        $('#boksTimer').html(((($('#slider').slider('value')) / 31) * 60).toFixed(0) + 'min pr. dag');
        setLabelPosition();
    });

        function setLabelPosition() {
        var label = $('#boksTimer');
        label.css('top', '20px');
        label.css('left', thumb.offset().left - (label.width() - thumb.width())/ 2);        
    }

});

Why is the value of the boksTimer 1min pr. day when the slider is at 0 ?

  • 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-28T19:31:05+00:00Added an answer on May 28, 2026 at 7:31 pm

    Use ui.value to get slider value on slide event function:

    $('#slider').bind('slide', function (event, ui) {   
        $('#boksTimer').html((((ui.value) / 31) * 60).toFixed(0) + 'min pr. dag');
        setLabelPosition();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here are the codes and preview >> http://jsfiddle.net/shingou/PGFxZ/ as you can see I've used
I have IE6. [ EDIT : you can see the template live here: http://themeforest.net/item/aqua-terra-lava-html-blog-portfolio-/full_screen_preview/53209
For some reason my bind events won't work. You can see my code here:
EDIT My jsfiddle entry is here : http://jsfiddle.net/ehNrE/3/ All the codes(only those required) below
In my other question You can see code of my arr structure and PriorityQueue
There is code for save button, but I can't see any code behind the
I have some really funky code. As you can see from the code below
How can I see the assembly code for a C++ program? What are the
Quite often in ANSI C code I can see parenthesis sorrounding a single return
I have a table defined (see code snippet below). How can I add a

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.