Rise,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/south-street/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script>
$(function() {
$(function() {
$.each({
'slidercv': {
min: 0,
max: 100,
value: 50
},
'slidercs': {
min: 0,
max: 100,
value: 50
},
'slidercd': {
min: 0,
max: 100,
value: 50
}
}, function(id, params) {
$('#'+ id).slider(params).on({
'slide': function(event, ui) {
event.data.val(ui.value);
},
'slidechange': function(event, ui) {
alert(event.data.val());
}
}, $('#'+ id + '-result'));
});
});
});
</script>
</head>
<body>
<table>
<tr>
<td>требуемый объем цемента</td>
<td><div id="slidercv" ></div><input id="slidercv-result"></td>
</tr>
<tr>
<td>компонент1</td>
<td><div id="slidercs" ></div><input id="slidercs-result"></td>
</tr>
<tr>
<td>компонент2</td>
<td><div id="slidercd" ></div><input id="slidercd-result"></td>
</tr>
</table>
</body>
</html>