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

151
Views
CheckBoxFor Javascript mark as a true or false depending on flag

Hello everyone I have a CheckBoxFor in JavaScript and I have a field called Received that is just saving "0" or "1" in the database, so I want to display in the case that I have "1" the check as a true and "0" as a false I would like to know how to do it that is the code:


    @for (var i = 0; i < Model.PurchaseOrder.LineItems.Count(); i++)
    {
        <tr>
            <td>
            @Html.CheckBoxFor(m => m.LineItems[i].Received)
            </td>
        </tr>
    }
</table>

Model

public bool Received { get; set; }
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!