dimanche 19 avril 2015

Checkbox not filled

In my database there's a bool filed called IsAvailable.In my edit function i wanted to fill that checkbox is IsAvailable or not but in here always checkbox not filled.



($("#chkcomp").prop('checked') == msg._prodlng[0].IsAvailable);


but



msg._prodlng[0].IsAvailable // thisone returns true or false correctly according to database value

Aucun commentaire:

Enregistrer un commentaire