1$(function() {
2 $( "#slider" ).slider({
3 range:"min",
4 min: 0,
5 max: 100,
6 value: 10,
7 slide: function wynik( event, ui ) {
8 $( "#price" ).val("$" + ui.value);
9 }
10 });
11 $( "#price" ).val( "$" + $( "#slider" ).slider( "value") );
12 var val = $('#slider').slider("value");
13 if ( val >= 20 ) {
14 $("#priceText").text("first text");
15 } else {
16 $("#priceText").text("second text");
17 }
18});
19