markfostel,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ion.RangeSlider - test</title>
<link rel="stylesheet" href="http://ionden.com/a/plugins/ion.rangeSlider/static/css/normalize.min.css">
<link rel="stylesheet" href="http://ionden.com/a/plugins/ion.rangeSlider/static/css/ion.rangeSlider.css">
<link rel="stylesheet" href="http://ionden.com/a/plugins/ion.rangeSlider/static/css/ion.rangeSlider.skinNice.css">
<style type="text/css">
.irs {
width: 500px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="http://ionden.com/a/plugins/ion.rangeSlider/static/js/ion-rangeSlider/ion.rangeSlider.js">
</script>
</head>
<body>
<table border="1">
<tbody>
<tr>
<td class="result"></td>
</tr>
<tr>
<td class="result"></td>
</tr>
<tr>
<td class="sum" colspan="2">sum:</td>
</tr>
</tbody>
</table>
<div style=" margin: 30px;">
<input type="text" class="range" value="" name="range"> <input type="text" class="range" value="" name="range2">
</div><script type="text/javascript">
(function($) {
$(function(){
var $range = $(".range"), $result = $(".result"), $sum = $(".sum");
function count()
{ var sum = 0;
$range.each(function(indx, element){
var num = +this.value||0;
$result.eq(indx).text(num)
sum += num
});
$sum.text("sum: " +sum)
}
$range.ionRangeSlider({
type: "single",
min: 0,
max: 100,
from: 50,
onChange: count
});
count()
});
})(jQuery);
</script>
</body>
</html>