Skip to content

Instantly share code, notes, and snippets.

@acagastya
Created November 28, 2019 17:06
Show Gist options
  • Save acagastya/2b2203cde3e9a4632e29b62945f45df8 to your computer and use it in GitHub Desktop.
Save acagastya/2b2203cde3e9a4632e29b62945f45df8 to your computer and use it in GitHub Desktop.
(function submitFeedback() {
let id =
'ctl00_ContentPlaceHolder1_WebPartManager1_gwpPanelNBAFeedback_Wizard1_gdvStudentQ1';
try {
const a = [...document.getElementById(id).rows];
a.shift();
const b = a.map(el => el.cells[2].children[0]);
b.forEach(el => (el.checked = true));
}catch{}
id =
'ctl00_ContentPlaceHolder1_WebPartManager1_gwpPanelNBAFeedback_Wizard1_gdvCourseQ1';
try {
const a = [...document.getElementById(id).rows];
a.shift();
const b = a.map(el => el.cells[2].children[0]);
b.forEach(el => (el.checked = true));
}catch{}
id =
'ctl00_ContentPlaceHolder1_WebPartManager1_gwpPanelNBAFeedback_Wizard1_gdvSubjectOutcome';
try {
const a = [...document.getElementById(id).rows];
a.shift();
const b = a.map(el => el.cells[2].children[0]);
b.forEach(el => (el.checked = true));
} catch {}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment