CRYSIS_STALKER,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Slider - Slider bound to select</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{
width: 500px;
margin: 20px;
}
</style>
<script>
$(function() {
var arr = [0,100000,300000,750000,1500000,3000000];
var input = $( "#minbeds" );
var slider = $( "<div id='slider'></div>" ).insertAfter( input ).slider({
min: 0,
max: 5,
range: "min",
animate: true ,
change: function( event, ui ) {
input.val(arr[ui.value]) ;
},
slide: function( event, ui ) {
input.val(arr[ui.value]) ;
}
});
slider.slider( "option", "value", 2 );
});
</script>
</head>
<body>
<form id="reservation">
<label for="minbeds">$</label>
<input name="minbeds" id="minbeds">
</form>
</body>
</html>