Slider update page on slide

Slider update page on slide

Hello;

I use a technique to update div without page reloads like this sample where it says:type destination or hotelname here. My code updates the div like this:
  1.       function hotels()
            {
               
                $.post('reloads/sep_list_refresh_jquery.php', { city: document.form.city.value, altFormat: document.form.altFormat.value, nights: document.form.nights.value},function(output){$('#hotels').html(output).show();});
            }








Now I need a similar but different functionality. I want to update a div using sliders.

I have installed the Jquery sliders here on here on this page.

I want my slider to work like this slider.

How can I get it to update the div using something similar to my script above?

Thanks