Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me ...
edit function retrieve database value check box is checked or unchecked in single view in mvc razor engine?
please help me......
Posted

1 solution

Assuming that you are making an ajax call to retrieve the data from database, put the below code in the success function of the ajax call:

$('#checkboxId').prop('checked', response.IsChecked);


"response.IsChecked" holds boolean value true/false.
Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900