kantry, спасибо
Добавлено: 30.03.2021 / 20:52
<div id="group" class="text-center">
<label><input class="form-check-input" type="checkbox">checkbox 1</label><br>
<label><input class="form-check-input" type="checkbox">checkbox 2</label><br>
<label><input class="form-check-input" type="checkbox">checkbox 3</label>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$('#group input:checkbox').click(function(){
if ($(this).is(':checked')) {
$('#group input:checkbox').not(this).prop('checked', false);
}
});
</script>Вставляю на страницу модуля, а не работает, почему?