How can I get the boolean value from the database selected in the chechbox? There are two checkboxes. One of them returns 1 0 and the other true false. How can I get these values selected?
<div class="form-group">
<label>
Status
</label>
<span class="switch">
<label>
<input type="checkbox" name="select" id="st">
<span></span>
</label>
</span>
</div>
This is my function that returns data to the update modal
$('#nm').val(secilenDeger.Name);
$('#dsc').val(secilenDeger.Description);
$('#grs').val(secilenDeger.DetayImage);
$('#dt').val(secilenDeger.Date);
$('#st').val(secilenDeger.Status);
$('#sh').val(secilenDeger.ShowInHome);
$('#st').val(true) == ':checked';
$('#sh').val(true) == ':checked';