Demo page for bootstrap slider plugin, includes examples of various ways to use the slider component.
The slider components can be controlled in various ways:
See project page for documentation.
Default settings are min=1, max=100, step=1
The slider snaps in proper increments
without floating point issues
the slider automatically reads the disabled attribute of input
the slider automatically uses y axis if height > width. No need to specify yet another option.
e.preventDefault()
called on the "slidestart"
-event
hide the original input and report the value in some other way
hide the original input and interpret the numbers as date in custom slide event
slider can be mousewheeled without affecting div scrollbar
Slider using right-to-left writing order
Markup listed below sliders doesn't include the control-group container due to .outerHTML
inconsistency issues.
Markup is generated with:
$( ".markup-container" ).each( function(){ $(this).closest(".row").find(".prettyprint").html( $.trim( $(this).html() .replace( /&/g, "&").replace( //g, ">" ) .replace( /data-slider=/g, '<span class="hilite">data-slider</span>=' ) ) ); });