Blog
When You Need To Modify An Element That Hasn’t Loaded Yet
When trying to apply ADA-compliant identifiers to elements that have been created from within a plugin, we can sometimes run into problems. Some plugins won’t let you modify the output, especially elements that need to have ADA specifications applied like a slider’s navigation, form labels, or other elements. You’re normally meant to utilize filters in order to control the HTML output of plugins, but oftentimes they aren’t offered by plugin manufacturers. You can’t hack the plugin files, because each plugin will need to be updated in the future for security and enhancements, so you may have to turn to JavaScript in these cases. But what happens when these elements are being loaded onto the screen with JavaScript and you’re unable to target any of them because they don’t exist on page load? In the search for a solution to my problem, I found this wonderful answer on StackOverflow. User Yong