Compare commits

...

2 Commits

Author SHA1 Message Date
2bffcdd9e7 Готово 2024-05-25 23:22:13 +04:00
a3bd1787dc Вижла тупит 2024-05-25 23:20:26 +04:00

View File

@ -42,26 +42,29 @@
</div>
</div>
</form>
<script>
$('#drug').on('change', function () {
check();
});
$('#count').on('change', function () {
check();
});
function check() {
var count = $('#count').val();
var drug = $('#drug').val();
if (count && drug) {
$.ajax({
method: "POST",
url: "/Home/Calc",
data: { count: count, drug: drug },
success: function (result) {
$("#sum").val(result);
}
@section Scripts
{
<script>
$('#drug').on('change', function () {
check();
});
};
}
</script>
$('#count').on('change', function () {
check();
});
function check() {
var count = $('#count').val();
var drug = $('#drug').val();
if (count && drug) {
$.ajax({
method: "POST",
url: "/Home/Calc",
data: { count: count, drug: drug },
success: function (result) {
$("#sum").val(result);
}
});
};
}
</script>
}