Answers for "how to make bootstrap checkbox check by default"

1

checkbox switch bootstrap

Bootstrap 5

<div class="form-check form-switch" title='Toggle'>
	<input type="checkbox" class="form-check-input" id="switch" />
	<label class="form-check-label" for='switch'>sometext</label>
</div>
Posted by: Guest on October-07-2021
0

jquery bootstrap checkbox val

$('#uho').prop('checked')

if($('#uho').prop('checked')){
    $.cookie("typpaliva", "Diesel");
}
else {
    $.cookie("typpaliva", "Benzin");
}
Posted by: Guest on October-10-2021

Code answers related to "how to make bootstrap checkbox check by default"

Browse Popular Code Answers by Language