change

Fires when the slider value changes as a result of selecting a new value with the drag handle, buttons or keyboard.

Parameters

NameTypeDescription
e {object} event data

Examples

sample

    
 <input id="slider" width="300" />
 <script>
     var slider = $('#slider').slider({
         change: function (e) {
             alert('Change is fired. The new value is ' + slider.value());
         }
     });
 </script>