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

  • Home
  • SEARCH
  • 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 7007965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:40:30+00:00 2026-05-27T21:40:30+00:00

I am trying to create a div that should follow the handler as it

  • 0

I am trying to create a div that should follow the handler as it is seen here:
http://m1.dk/Priser/#tab:#calc,#abb

My JSfiddle: http://jsfiddle.net/z3xV3/2/

I also want to make a calculation on the UI value that should appear in the box.

Here is a illustration what I want to achieve:
enter image description here

HTML:

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

Jquery:

$(document).ready(function() {


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

    $( "#amount" ).val( "$" + $( "#slider" ).slider( "value" ) );


});
  • 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-27T21:40:30+00:00Added an answer on May 27, 2026 at 9:40 pm

    I hope that’s the effect you’re looking for: http://jsfiddle.net/z3xV3/11/

    JS

    $(document).ready(function() {
    
        $("#slider").slider({value:'', min: 0, max: 150, step: 1, range: 'min'});
    
        var thumb = $($('#slider').children('.ui-slider-handle'));   
        setLabelPosition();    
    
        $('#slider').bind('slide', function () {        
            $('#sliderValue').val($('#slider').slider('value'));
            setLabelPosition();
        });
    
        function setLabelPosition() {
            var label = $('#sliderValue');
            label.css('top', thumb.offset().top + label.outerHeight(true));
            label.css('left', thumb.offset().left - (label.width() - thumb.width())/ 2);  
        }
    
    });
    

    HTML

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

    CSS

    #sliderValue {
        position:absolute;
        width: 50px;
    }
    

    Best regards!

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

Sidebar

Related Questions

I'm trying to create a <div> that has an opacity of 60%. I want
I am trying to create a fixed div, so that even if i scroll
Trying to create a pattern that includes an or condition. $pattern[body]='/(<\/a><\/li><\/ul><\/div><p>|<h2>)(.*)<div class=like>/s'; The pattern
I'm trying to create a new div each time a text field contained in
I'm trying to create a small html fragment (a div element) consisted of three
I am trying to create a grid like system with div's with content floated
I'm trying to create a standardized show/hide element system, like so: <div class=opener popup_1>Click
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Ok so I am trying create a login script, here I am using PHP5
Trying to create a box that contains sentences (with spaces) and can have 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.