I am trying to access the Approved / Rejected dropdown found near the upper right corner, and show / hide content based on an onChange. I grabbed a view source and found that the ID for that select dropdown is "ddlist_10205_21", or at least I think that is the ID. However, my code doesn't seem to work.
document.getElementById("ddlist_10205_21").onChange = function() {
if (document.getElementById("ddlist_10205_21").value == "800") {
console.log('Approved');
} else {
console.log('Nope');
}
}
Any advice?