79389719

Date: 2025-01-27 04:07:19
Score: 0.5
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dallas Clarke