When I test the code snippet below in the Chrome console, it works perfectly fine. However, the code fails to work when I incorporate it into my JavaScript extension in Chrome.
var region = document.getElementById("physicalDeliveryOfficeName");
region.removeAttribute("onchange");
Can anyone offer insights into what might be going wrong? I've attempted adding this line within my function as well as at the beginning of my script, but to no avail.