In my javascript, I have a reference to a select box (I got through document.getElementById). The element right before this dropdown is a checkbox, and I need to get an reference to this as well. I don't know the id (it's automatically generated).
Isn't there a function that I can use to easily get this prior element in the hierarchy?
Our community of experts have been thoroughly vetted for their expertise and industry experience.