Callback Function
{{#markdown}}
```js
$(document).foundation({
slider: {
on_change: function(){
// do something when the value changes
}
}
});
```
{{/markdown}}
Events
{{#markdown}}
```js
$('[data-slider]').on('change', function(){
// do something when the value changes
});
```
{{/markdown}}
### Getting and Setting Values
To get the value of a slider, get the vale of its `data-slider` attribute.