SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$("#" + newcol).attr("checked", "checked");
I've had issues with attr("checked", true), so I tend to use the above instead.
attr("checked", true)
Also, if you have the ID then you don't need that other stuff for selection. An ID is unique.