Skip to content

Instantly share code, notes, and snippets.

@derekeder
Created February 24, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekeder/f14e642325d339ed2205 to your computer and use it in GitHub Desktop.
Save derekeder/f14e642325d339ed2205 to your computer and use it in GitHub Desktop.
jquery slider init
$("#PercentDTaP-slider").slider({
orientation: "horizontal",
range: true,
min: 0,
max: 1,
values: [0, 1],
step: 0.1,
slide: function (event, ui) {
$("#age-selected-start").html(ui.values[0]);
$("#age-selected-end").html(ui.values[1]);
},
stop: function(event, ui) {
self.doSearch();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment