June 4, 2024
Just plopping this here for future reference and in case it might be useful to someone.
I'm having to work with a platform which shall remain unnamed but whose code makes working with it very difficult. Among other things, it gives form elements unique classes with ID numbers, but for some reason no IDs. So I needed to filter the class list to find the unique class so I can set the element's ID…
Continue reading JavaScript function to find a class on an element containing a particular string