SyntaxFix
Write A Post
Hire A Developer
Questions
A simple answer is to add checked attributes within a checkbox:
checked
$('input[id='+$(this).attr("id")+']').attr("checked", "checked");