When focus is on input, add a class to it's closest label

When focus is on input, add a class to it's closest label

Hi,

Looking at my example here:


Could you please help me to find out why this part of the code is not working?:

  1. $(this).closest(".text-label").addClass("text-label--floated");

Thanks