0

Currently i use

$(this).parent().parent().parent().parent().$(".collapse");

i tried to use .closest(".playerul") but it didn't find anything. Passing a selector within the parent didn't work out either.
I have to go like this: enter image description here

Minzkraut
  • 2,149
  • 25
  • 31

1 Answers1

1

try this:

var value = $(this).closest('.playerul').next(".collapse");
value.hide(); // to hiding 
console.log(value);
Satpal
  • 132,252
  • 13
  • 159
  • 168
miglio
  • 2,048
  • 10
  • 23
  • Please provide an explanation with your code to explain *how* this code answers the OP's question. This will also help future searchers. – SnareChops Jan 27 '16 at 00:42