I\'ve looked at the other answers but still don\'t understand.
For some reason this line of code always returns null.
var els = document.querySelecto
Possible solutions to your problem...
(function () { var els = document.querySelector("[id='MTG_INSTR$2']"); console.log(els); })();
document.addEventListener("DOMContentLoaded", function () { var els = document.querySelector("[id='MTG_INSTR$2']"); console.log(els); });