[Solved] Cannot select element in same table row on change function [closed]


.closest goes up in the DOM tree to try and find the element you make it look for. There is no .travelClass element further up the tree, from the position of your .travelMode element.

You need to go up to the TD or the TR first, and then select your way sideways/down to the element you want.

solved Cannot select element in same table row on change function [closed]