I have the following JQUERY UI Slider Code working:
$('div#chatFriendsSliderPath').slider({
orientation: 'vertical',
animate: 'fast',
change: handleSliderChange,
slide: handleSliderSlide,
range: 'min',
min: 0,
max: 100,
value: 100
});
I have a button at the top and bottom and what these to move the slider to the top/max or bottom/min position. Code below.
// Chat Contacts - Scroll to Top
$(document).on('click','img#chatContactsSliderBarTop', function() {
alert('top...');
});
// Chat Contacts - Scroll to Bottom
$(document).on('click','img#chatContactsSliderBarBottom', function() {
alert('bottom...');
});
What do I need to put in place of the alert code to get the slider to move the extremities?
Note: there is also code for change/slide that I haven't put here.