Answer the question
In order to leave comments, you need to log in
Why does onclick work differently?
Rewrote everything from 4 to 5 Bootstrap:
# 1. Bootstrap 4
.custom-control.custom-checkbox.float-left
input.custom-control-input.result-game.float-left onclick="recalc( )" type="checkbox" autocomplete="off" checked=data['IsGameCheckboxEnabled'] id="game_1"
label.custom-control-label for="game_1"
# 2. Bootstap 5
.form-check.float-start
input.form-check-input.result-game.float-start onclick="recalc( )" type="checkbox" autocomplete="off" checked=data['IsGameCheckboxEnabled'] id="game_1"
var game_checked = $("#game_1").is(":checked");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question