Skip to content

Instantly share code, notes, and snippets.

@ankushsomani09
Last active August 17, 2020 05:33
Show Gist options
  • Save ankushsomani09/956527a94b10375c31c85e4712ff4459 to your computer and use it in GitHub Desktop.
Save ankushsomani09/956527a94b10375c31c85e4712ff4459 to your computer and use it in GitHub Desktop.
//To Mark/Check Read only field
var arrayRead = document.querySelectorAll('input[id$=fls_read_ck]');
for(i=0;i<arrayReadOnly.length;i++){
if(!arrayReadOnly[i].checked){
arrayReadOnly[i].checked = true;
}
}
//To Mark/Check Edit field
var arrayEdit = document.querySelectorAll('input[id$=fls_edit_ck]');
for(i=0;i<arrayEdit.length;i++){
if(!arrayEdit[i].checked){
arrayEdit[i].checked = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment