Для Коли Распаева

This commit is contained in:
Павел Сорокин 2023-03-28 11:38:37 +04:00
parent ad62d8e459
commit 58c6b16483

View File

@ -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>
}