AlexG88,
и где ошибка?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Slider - Range slider</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<style type="text/css">
#slider-range{
width: 500px
}
</style>
<script>
$(function()
{
$("#slider-range").slider(
{
range: true,
min: 0,
max: 500,
values:[0, 500],
slide: function(event, ui) {
if (+ui.values[0]>0) {$("#amount").css('color', 'red')};
$("#amount").val(ui.values[0] + " руб.");
$("#amount3").val(ui.values[1] + " руб.");
}
}
);
$("#amount").val($("#slider-range").slider("values", 0) + " руб.");
$("#amount3").val($("#slider-range").slider("values", 1) + " руб.");
}
);
</script>
</head>
<body>
<p>
<label for="amount"><span>Price range:</span>
<input type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"></label><br>
<label for="amount3"><span>Цена</span>
<input type="text" id="amount3" readonly style="border:0;"></label>
</p>
<div id="slider-range"></div>
</body>
</html>