How can I reset jquery slider so it as set default values as calls all callback methods like slide etc?
$('#value-slider').slider({
min: 1000,
max: 20000000,
values: [ 1, 20000000 ],
step: 1000,
range: true,
slide: function(event,ui){
$('#search-panel input[name="value1"]').val(ui.values[0]);
$('#search-panel input[name="value2"]').val(ui.values[1]);
$('#value-count span').text(ui.values[0] + ' - ' + ui.values[1] );
}
});
There is no built in function reset, had to write own reset