Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
How can I get the boolean value from the database selected in the chechbox?

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';
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!