Create slider with min/max range
Description
The following code shows how to create slider with min/max range.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
<link rel="stylesheet" type="text/css"
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css">
<style type='text/css'>
#custom-slider .ui-rangeslider-sliders {
margin: 0.5em 100px !important;
}<!-- w w w .ja v a2 s .c o m-->
#custom-slider input.ui-input-text.ui-slider-input {
width: 70px !important;
}
</style>
</head>
<body>
<form>
<div data-role="rangeslider" id="custom-slider">
<label for="minPrice">Price Range</label>
<input type="range" name="minPrice" id="minPrice" min="0" max="5000000" value="0">
<label for="maxPrice">Price Range (£)</label>
<input type="range" name="maxPrice" id="maxPrice" min="0" max="5000000" value="5000000">
</div>
</form>
</body>
</html>