Skip to content

Instantly share code, notes, and snippets.

@IliaIdakiev
Created September 5, 2013 11:58
Show Gist options
  • Save IliaIdakiev/6449181 to your computer and use it in GitHub Desktop.
Save IliaIdakiev/6449181 to your computer and use it in GitHub Desktop.
Check / Uncheck Checkbox multiple times ! PROP
var selectedIds = JSON.parse('@Html.Raw(Json.Encode(@Model.DuplicateIds))');
if (jQuery.inArray(id, selectedIds) != -1) {
$("#isDuplicate").prop('checked', true);
} else {
$("#isDuplicate").prop('checked', false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment