Round slider is a jQuery plugin that allows the user to select a value or range of values by dragging the slider handle.

If you are here means that you are going to use this or you want to know about this. So this document will explain the things what you need to know.




The roundSlider options are classified as properties and events, by using that we can interact with the control programmatically. In addition some public methods also available to access the control.

How to use Options ?

In below, it shows the possible ways to use the Options. After the control initialization, by using any one of the way we can access the control dynamically.


From Properties, consider the value property. To get or set the value for the property:


$("#control").roundSlider("option", "value", 50);


$("#control").roundSlider("option", { "value", 50 });
var obj = $("#control").data("roundSlider");

    obj.option("value", 50);


$("#control").roundSlider("option", "value");
var obj = $("#control").data("roundSlider");


where obj holds the current control's instance.


In the following ways we can bind the events to the control.

like anonymous function

    change: function (e) {

through handler

    change: "onValueChange"

function onValueChange (e) {

jQuery like binding


$("#control").on("change", function (e) {

Public Methods

var obj = $("#control").data("roundSlider");


Passing arguments to the public method:

$("#control").roundSlider("setValue", 40, 1);

obj.setValue(40, 1);

Class Names

The roundSlider has the following public classes, which user can overwrite these classes to apply their custom styles or themes.

  • .rs-path-color : This class applies the background color for the slider path.
  • .rs-range-color : This class applies the background color for the slider range.
  • .rs-bg-color : This class applies the background color for the slider control.
  • .rs-border : This class applies the border color for the slider control.
    • : This class applies the styles for inner border alone.
    • : This class applies the styles for outer border alone.
  • .rs-handle : This class added for the slider handles. We can set the handle styles here.
    • .rs-first .rs-handle : Mentions the first handle of the slider.
    • .rs-second .rs-handle : Mentions the second handle of the slider. This is available at the range slider only.
    • : When the slider handle was focused, at that time the focus class added for the corresponding handle.
  • .rs-animation .rs-transition : This class applies the CSS3 animation related styles.

Note : If you have faced any problem while applying the colors, then you can use the Playground to customize the colors.

How to Install ?

Just follow the below three steps to include the roundSlider into your application.

Step 1 : Include the dependency files

Since jQuery is the basic dependency file, so include that. And, for roundSlider include the control's CSS and Script file.

Step 2 : Add the HTML markup

Include the below HTML element in your application, at where you want to render the control.

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

Step 3 : Call the roundSlider

From the script section, you can call the roundSlider with corresponding DOM object.