Menu icon Foundation
slider end problem

Hi there,

I have used your foundation Framework for my web development. Most of the things are completed so far. And I have find out an issue with the slider.

In this slider I have set the min and maximum value as 5 and 25. But when I use it goes into the 24 and stop. But I move the slider to left it is going to 25.

URL - > https://www.hnbassurance.com/eLife/endowment.php

1

     $( "#slider" ).slider({
        			value:5,
					min: 5,
					max: 25,
					step: 1,
					slide: function( event, ui ) {
                    $( "#amount" ).val( " " + ui.value );
    					document.getElementById("no_terms").innerHTML = "Term "+$( "#slider" ).slider( "value" ) ;
						document.getElementById("terma").innerHTML = "Term "+$( "#slider" ).slider( "value" ) +" years";
						document.getElementById("term_type").value=$( "#slider" ).slider( "value" );
						mode();

					}
				}).width(screen);

2

jquery

Hi there,

I have used your foundation Framework for my web development. Most of the things are completed so far. And I have find out an issue with the slider.

In this slider I have set the min and maximum value as 5 and 25. But when I use it goes into the 24 and stop. But I move the slider to left it is going to 25.

URL - > https://www.hnbassurance.com/eLife/endowment.php

1

     $( "#slider" ).slider({
        			value:5,
					min: 5,
					max: 25,
					step: 1,
					slide: function( event, ui ) {
                    $( "#amount" ).val( " " + ui.value );
    					document.getElementById("no_terms").innerHTML = "Term "+$( "#slider" ).slider( "value" ) ;
						document.getElementById("terma").innerHTML = "Term "+$( "#slider" ).slider( "value" ) +" years";
						document.getElementById("term_type").value=$( "#slider" ).slider( "value" );
						mode();

					}
				}).width(screen);

2

This post has been closed. No new replies can be added.

Rafi Benkual almost 6 years ago

This is a jquery question rather than a Foundation question. Here is more info on this plugin.

http://jquerymobile.com/demos/1.2.0/docs/forms/slider/

We are going to close this post as it doesnt relate to a Foundation component. Thanks!