I\'ve been trying to figure out how to add the attribute \"checked\" to a checkbox on click. The reason I want to do this is so if I check off a checkbox; I can have my loca
A simple answer is to add checked attributes within a checkbox:
checked
$('input[id='+$(this).attr("id")+']').attr("checked", "checked");