Checkbox value not being set <p>In my database there's a bool fiedd called <code>IsAvailable</code>.In my edit function i wanted to fill that checkbox is <code>IsAvailable</code> or <code>not</code> but in here always checkbox not filled.</p> <pre><code>($("#chkcomp").prop('checked') == msg._prodlng[0].IsAvailable); </code></pre> <p>but <br></p> <pre><code>msg._prodlng[0].IsAvailable // this one returns true or false correctly according to database value </code></pre>