For me I was trying to use the event object instead of the target object:-
$('#select').on('change', event => {
event = $(event.target);
if (event.val() == 0) event.next().show();
else event.next().hide();
});
So I had to add the event = $(event.target);
to get the correct object.