After spending a frustrating amount of time trying to disable the annoying "md-checkboxes" on a certain food store website, despite unchecking them multiple times and reporting the issue without any luck, I have come to seek assistance from knowledgeable experts like yourselves.
The webpage is utilizing AngularJS "md-checkboxes" instead of traditional HTML checkboxes. Unfortunately, the documentation for this technology is scarce and my searches through various forums and websites have yielded no useful information. All attempts to manipulate these checkboxes programatically have resulted in console errors.
Below is the code structure I am currently working with:
function turnOffCheckboxes()
{
var checkboxes = document.getElementsByTagName('md-checkbox');
for (var i = 0; i < checkboxes.length; i++)
{
// Despite numerous attempted solutions, I have been unsuccessful in unchecking the boxes programmatically. The code does execute, but the checkboxes remain checked.
}
}
setInterval(turnOffCheckboxes, 500);
I have resorted to using an interval function because it appears that the checkboxes are re-checked after a short delay following the page load.