I have this simple jQuery UI Slider setup with a range and a two default values that overlap. The entire thing (with a few bells and whistles) can be found in this jsfiddle:
Another solution: Test for both values and if they are the same, return to the last step.
$("#slider").slider({
range:true,
min:0,
max:250,
step: 25,
slide: function( event, ui ) {
if (ui.values[0] == ui.values[1]){
return false;
}else{
$( "#amount" ).html( "€" + ui.values[0] + " - €" + ui.values[1] );
}
}
});