How to programmatically check a checkbox?

Apr 11 2016 10:05 AM
Consider the following table

Name value
aaa 1
bbb 0
ccc 1
Now I am trying to generate a report(html form) through my web page. When the report loads I want it to show 3 checkbox and the ones with value "1" in the database should be automatically checked. For eg-

aaa checked
bbb unchecked
ccc checked

Answers (1)