One approach would be to use a selector that will isolate the correct elements based on the dom structure. Instead of having your selector select from all elements in the document, you need to specify a smaller, more specific subset of elements.
For example, traverse from the select up to the lowest common parent element, in your example that would be the td element, and then select the proper descendants of it. see closest() and then find()
Or maybe you could just use the siblings() of the select.
If the dom structure isn't consistent throughout your page, you might have trouble creating a single selector that works for all of your cases. You could create a map using an object. Put the id of the select element as the object property, and the value could be an array if id's to hide, or the value could even just be a selector. Since you will know the id of the element that fired the change event, you can use that to lookup the value in the map.