Persistence Support in JQuery Slider widget

19 Apr 20171 minute to read

This feature supports you to save current model value to browser cookies for state maintenance. When you refresh the web page, the Slider control retains the model value apply from browser cookies. The data type of enablePersistence is Boolean type.

The following steps explain you on how to enable the enablePersistence property.

In an HTML page, add a <div> element to render it as a Slider widget.

  • HTML
  • <div id="ejSlider"> </div>
  • // When initializing the Slider widget, enable the enablePersistence property as follows.
                height: "15",
                width: "500",