Для Коли Распаева
This commit is contained in:
parent
ad62d8e459
commit
58c6b16483
@ -25,26 +25,29 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$('#ship').on('change', function () {
|
||||
check();
|
||||
});
|
||||
$('#count').on('change', function () {
|
||||
check();
|
||||
});
|
||||
@section Scripts
|
||||
{
|
||||
<script>
|
||||
$('#ship').on('change', function () {
|
||||
check();
|
||||
});
|
||||
$('#count').on('change', function () {
|
||||
check();
|
||||
});
|
||||
|
||||
function check() {
|
||||
var count = $('#count').val();
|
||||
var ship = $('#ship').val();
|
||||
if (count && ship) {
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "/Home/Calc",
|
||||
data: { count: count, ship: ship },
|
||||
success: function (result) {
|
||||
$("#sum").val(result);
|
||||
}
|
||||
});
|
||||
};
|
||||
function check() {
|
||||
var count = $('#count').val();
|
||||
var ship = $('#ship').val();
|
||||
if (count && ship) {
|
||||
$.ajax({
|
||||
method: "POST",
|
||||
url: "/Home/Calc",
|
||||
data: { count: count, ship: ship },
|
||||
success: function (result) {
|
||||
$("#sum").val(result);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
}
|
Loading…
Reference in New Issue
Block a user