Problem with jquery fadeToggle

Hi Kalle, thanks for answering. But just found the solution. I need to add “return this;” and it works.

case buttonsRoot[0]:
this.toggle = !this.toggle;
$(".root1").stop().fadeTo(10, this.toggle ? 1 : 0.5);
return this;
break;

1 Like